var missingNumber = function(nums) {
let length = nums.length;
let sortedArray = nums.sort((a,b) => a-b);
for(let i =0; i <=length; i++){
if(i !== sortedArray[i]){
return i;
}
}
return undefined;
};
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)