← All problemsSign in

Zumba class

Jennifer is an International Zumba Instructor based in California. There are n students under her supervision, the flexibility and dancing skills of the $i$th student is $a$$i$ . She has to shoot a video for an International Zumba competition online and for that, she has to create a group for the competition. She knows the fact that the group with more students has more chances of its victory! So

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