Up and Down
CodeChefOpen on judge ↗
It is KJSCE's Abhiyantriki-2014 (trust us its awesome!). There is an event taking place during the technical festival. N students have been called to perform a task. All the students were handed cards uniquely numbered 1,2,3,..N. In a room nearby, N cups are placed on a table also uniquely numbered as 1,2,3...N. Number of cups is exactly equal to number of students. Initially all the cups are k
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