Problem Statement
Write a function findMissing that accepts an array of n-1 numbers in range 1 to n, and returns the missing number.
DEMO-C-32 โข Programming in C
Write a function findMissing that accepts an array of n-1 numbers in range 1 to n, and returns the missing number.
n, n-1 array elements
Missing number
Submit runs every public testcase in this browser. Results and code never leave this device.
5 1 2 4 5
3
2 1
2
3 2 3
1
6 1 2 3 5 6
4
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question