System.out.println("expected 3: " + longestSubarray(new int[]{-1,1,-1,-5,2,2})); System.out.println("expected 3: " + longestSubarray(new int[]{3,3,2,-7,2,1,1,-2,-2 ...