π§©15: Find the Missing Number in an Array (Beginner-Friendly DSA)
π Problem Statement
You are given:
A number N
An array containing N-1 numbers
Numbers are from 1 to N
Exactly one number is missing
Your task is to find the missing number.
Example 1
Input:
N = 5
array = [1, 2, 4, 5]
Output:
3
Example 2
In...
richak.hashnode.dev3 min read