X Tutup
/* Given an array of ints, return true if the sequence of numbers 1, 2, 3 appears in the array somewhere. eg: array123([1, 1, 2, 3, 1]) → true array123([1, 1, 2, 4, 1]) → false array123([1, 1, 2, 1, 2, 3]) → true */ public boolean array123(int[] nums) { for(int i=0; i
X Tutup