Missing Number
CodeChefOpen on judge ↗
Rahul and Neha are playing a simple game. In each turn, they give a list of first N natural numbers to each other in a random order. The challenge is that there is one number missing from the list, and the other person is required to find it. The person who solves the challenge given to him/her first wins that round. Rahul has become good with the game and has been able to win most of them. Neha i
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