← All problemsSign in

HeadBoy

The School headboy is going to be chosen by the whole school by the process of school elections that happens every year, Principal has decided to make it more fun this year he advised students to develop an algorithm so that candidates can see that how many votes they have missed to win the election. Arnav, Rahul, Raghav are $3$ candidates that are going to compete for the headboy position now yo

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