X64: has12

Given an array of ints, return true if there is a 1 in the array with a 2 somewhere later in the array.

Your Answer:

x
 
1
public boolean has12(int[] nums)
2
{
3
    
4
}
5
Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.