← All problemsSign in

Shagil Sir Problem

Problem description. Shagil is given N applications to code and the amount which is given to him for coding each application is given in the form of an array of size N.Shagil is going to finish all the applications in a series of steps. For each step, he will pick a non-empty subset of applications and finish them. The amount Shagil gets by coding these applications is the size of the subset mult

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