Sanjaykumar-IT / dsa-problems

coding problems
0 stars 4 forks source link

Find the missing number in an array #15

Closed Sanjaykumar-IT closed 3 hours ago

Sanjaykumar-IT commented 3 hours ago

Given an array with n consecutive numbers but there is one missing number. Return -1 if there is no missing number

Input [1,2,4,5] Output 3

Input [1,2,3,4,5] return -1

aravindhml commented 3 hours ago

Hi @Sanjaykumar-IT . Please assign this to me.

aravindhml commented 3 hours ago

Issue is resolved in this PR : https://github.com/Sanjaykumar-IT/dsa-problems/pull/18

Sanjaykumar-IT commented 3 hours ago

Issue completed!!