package leetcode;

/**
 * https://leetcode.com/problems/stone-game-ii/
 */
public class Problem1140 {
    public int stoneGameII(int[] piles) {
        // TODO
        return 0;
    }

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

@@ -269,16 +269,227 @@
 1140();%0A
+        System.out.println(prob.stoneGameII(new int%5B%5D%7B2, 7, 9, 4, 4%7D)); // 10%0A        System.out.println(prob.stoneGameII(new int%5B%5D%7B2%7D)); // 2%0A        System.out.println(prob.stoneGameII(new int%5B%5D%7B2, 3%7D)); // 5%0A
     %7D%0A%7D%0A

Update problem 1140