package leetcode;

/**
 * https://leetcode.com/problems/candy/
 */
public class Problem135 {
    public int candy(int[] ratings) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem135 prob = new Problem135();
        System.out.println(prob.candy(new int[]{1, 0, 2})); // 5
        System.out.println(prob.candy(new int[]{1, 2, 2})); // 4
    }
}

@@ -384,16 +384,81 @@
 ); // 4%0A
+        System.out.println(prob.candy(new int%5B%5D%7B2, 2, 2%7D)); // 3%0A
     %7D%0A%7D%0A

Update problem 135