Dsa
Bit Manipulation
Medium
Find the Missing Number
You are given an array containing N integers where each integer is between 0 and N (inclusive). There is one integer missing from the array. Write a program to find and return the missing integer.
For example:
Input:
[3, 0, 1]
Output:
2
Explanation:
The array contains numbers from 0 to 3, missing number is 2.
Key concepts
bit_manipulationfinding
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now