Closed Haris-Mohanty closed 1 year ago
You are given an array containing n distinct numbers taken from 0, 1, 2, ..., n, except for one missing number. Your task is to find and return the missing number.
nums: A list of distinct integers containing n elements, where 1 <= n <= 10^4.
Return the missing number.
nums = [3, 0, 1]
2
Hi @ayushi-ras, Could you please assign me this issue?
@ayushi-ras, Please add the hacktoberfest-accepted label In pr otherwise it will excluded.
Thank You @ayushi-ras ! Closed issue #13
Problem Description:
You are given an array containing n distinct numbers taken from 0, 1, 2, ..., n, except for one missing number. Your task is to find and return the missing number.
Input:
Output:
Example:
Output:
2