Practice Arena
[Exp 1] Find Missing Number in Sequence
UNIT-I Rubric: 10m Code + 5m Viva + 5m Record EASY 10 Marks
Session: 59:59
Bubblewrap Sandbox Active
Problem Statement
Given an array containing N distinct numbers taken from the sequence 1 to N+1, exactly one integer is missing. Your task is to identify and print the single missing integer. Example: If N = 5 and the sequence is [1, 2, 4, 5, 6], the missing number is 3.
Input Format
Line 1 contains a single integer N (number of elements present). Line 2 contains N space-separated integers.
Output Format
Print a single integer representing the missing number.
Constraints
1 <= N <= 10^5 All elements are unique and in the range [1, N+1].
Status Lang Score Time Submitted
No prior submissions for this problem.
Ready
Click Run Code to evaluate against sample test cases, or Submit Solution for full evaluation.
Instructor Guidance