Businness Mind
CodeChefOpen on judge ↗
Let's suppose Pratik is a game developer. He has a list of $N$ customers and their respective budgets to buy a Game. Now each of the customers will buy the game if and only if the price of the game is less than or equal to the customer's budget. Now you as a good friend of Pratik have to fix the price so that the Revenue he earns from the game is maximized. Find the maximum possible Revenue. ###
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start