package leetcode;

/**
 * https://leetcode.com/problems/degree-of-an-array/
 */
public class Problem697 {
    public int findShortestSubArray(int[] nums) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem697 prob = new Problem697();
        System.out.println(prob.findShortestSubArray(new int[]{1, 2, 2, 3, 1})); // 2
        System.out.println(prob.findShortestSubArray(new int[]{1, 2, 2, 3, 1, 4, 2})); // 6
    }
}

@@ -457,16 +457,102 @@
 ); // 6%0A
+        System.out.println(prob.findShortestSubArray(new int%5B%5D%7B1, 1, 1, 1, 1%7D)); // 5%0A
     %7D%0A%7D%0A

Update problem 697