Prices along a row of cubicles never decrease. For each query (start position, budget), how many products can be bought walking to the end?
Prices along a row of cubicles never decrease. For each query (start position, budget), how many products can be bought walking to the end?
The discussion opens with the full question.