Compiler error


  • 0
    G

    Why empty compiler error?

    for(int i = 0; i < nums.Length; i++){
     	for(int count = 0; count < nums.Length; count++){
     		if(nums[count] == i){
     			break;
     		}
     		if(count == nums.Length - 1) {
     			return i;
     		}
     	}
     }
     			
     return -1;
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.