Find Missing Number in Array
Medium📝 Description
Find the missing number in a given array of integers from 1 to n
Input Format
An array of integers from 1 to n with one number missing
Output Format
The missing number
Constraints
Array length ≤ 1000
🔍 Sample Input
1 2 4 5
✅ Sample Output
3
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run