ayushi-ras / beginner-contribution-

Beginners Friendly
MIT License
13 stars 63 forks source link

DSA Problem: Finding the Missing Number #13

Closed Haris-Mohanty closed 1 year ago

Haris-Mohanty commented 1 year ago

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:

 nums: A list of distinct integers containing n elements, where 1 <= n <= 10^4.

Output:

Return the missing number.

Example:

       nums = [3, 0, 1]

Output:

2

Haris-Mohanty commented 1 year ago

Hi @ayushi-ras, Could you please assign me this issue?

Haris-Mohanty commented 1 year ago

@ayushi-ras, Please add the hacktoberfest-accepted label In pr otherwise it will excluded.

Haris-Mohanty commented 1 year ago

Thank You @ayushi-ras ! Closed issue #13