Find the Goalkeeper
CodeChefOpen on judge ↗
In a school in 'The land of Nowhere', students love to be the goalkeeper while playing soccer. Coach Randy has designed a method to pick a goal keeper among a givenset of students. He asks them to first stand in a line and assigns them numbers. So, the first in line is given 1, the second is given 2 and so on. Now, he asks them to form a circle. Then, he starts eliminating 'alternate' students sta
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