Thor and his Beer
CodeChefOpen on judge ↗
After the events of Avengers ENDGAME, Thor is busy in drinking beer. He is unaware of a upcoming dangers. Now to protect the world you have been given the responsibility to form most powerful team. N warriors are standing in a line and you have to form a team of up to N members. Each warrior has the power level A[i] and injured warriors may also be in the line with power level less than or e
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