Dsa
Hashing
Warm-up
Missing Number
You are given an array of n integers containing all numbers from 0 to n except one missing number. Your task is to find that missing number. Assume n is the length of the array.
Example:
Input:
[3, 0, 1]
Output:
2
Key concepts
hashingarraysmath
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