package leetcode;

/**
 * https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/
 */
public class Problem914 {
    public boolean hasGroupsSizeX(int[] deck) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem914 prob = new Problem914();
    }
}

@@ -293,16 +293,519 @@
 m914();%0A
+        System.out.println(prob.hasGroupsSizeX(new int%5B%5D%7B1, 2, 3, 4, 4, 3, 2, 1%7D)); // true%0A        System.out.println(prob.hasGroupsSizeX(new int%5B%5D%7B1, 1, 1, 2, 2, 2, 3, 3%7D)); // false%0A        System.out.println(prob.hasGroupsSizeX(new int%5B%5D%7B1%7D)); // false%0A        System.out.println(prob.hasGroupsSizeX(new int%5B%5D%7B1, 1%7D)); // true%0A        System.out.println(prob.hasGroupsSizeX(new int%5B%5D%7B1, 1, 2, 2, 2, 2%7D)); // true%0A        System.out.println(prob.hasGroupsSizeX(new int%5B%5D%7B1, 1, 1, 2, 2, 2%7D)); // true%0A
     %7D%0A%7D%0A

Update problem 914