← All problemsSign in

Missing Number

Problem Description: You will be given N-1 numbers in the range [1,N]. Find out the missing number. Input Format: Input contains two lines First line contains an integer representing the range N. Second line contains N-1 space separated integers(i) representing the numbers in range [1,N]. Output Format: One integer that is not given in the list in the range [1,N]. Constraints 1 ≤ N ≤ 1000

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