Here is the problem in Java:
1.)Given an int array length 3, if there is a 2 in the array immediately followed by a 3, set the 3 element to 0. Return the changed array.
fix23({1, 2, 3}) → {1, 2, 0}
fix23({2, 3, 5}) → {2, 0, 5}
fix23({1, 2, 1}) → {1, 2, 1}
public int[] fix23(int[] nums)
2.)Given an int array, return true if the array contains 2 twice, or 3 twice. The array will be length 0, 1, or 2.
double23({2, 2}) → true
double23({3, 3}) → true
double23({2, 3}) → false
public int[] fix23(int[] nums)
more information in www.javabat.com
in the cateogy of Array1 fix 23 and double 23