← All problemsSign in

Racing Competition

Ramesh and Suresh are having a racing competition to see who is the best runner. They don't want to decide this in a single race, so they choose a number N which is the minimum number of points one of them should have to be declared the winner. Here are the rules: - Both start with a score of zero. - No race ends in a tie. Whoever wins, gets a point. - If one of them gets to a score of N whil

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