Mallu and geeksforgeeks
CodeChefOpen on judge ↗
There are lots of contest coming up on geeksforgeeks and it is in urgent need of lots of problems. So it calls a meeting of all the problem setters in the team. There are N problem setters in geeksforgeeks. Everybody has a fixed price for preparing a problem. This is given by the array prices[ ] and all elements of the array are distinct. Obviously the higher charged setters are more experienced
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