← All problemsSign in

Maximum Profit

Kaushik, a Student from the second-year IT department, wants to conduct a hackathon in his college. For the hackathon, he wants to set the ticket price such that the profit earned is maximised. The participant can only participate in the hackathon if their budget is greater than or equal to the proposed price by Kaushik. Kaushik will be provided with a list of size $N$ having a budget of the pa

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start