Closed Sanjaykumar-IT closed 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
Hi @Sanjaykumar-IT . Please assign this to me.
Issue is resolved in this PR : https://github.com/Sanjaykumar-IT/dsa-problems/pull/18
Issue completed!!
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