package leetcode;

import java.util.Arrays;
import java.util.List;

/**
 * https://leetcode.com/problems/pyramid-transition-matrix/
 */
public class Problem756 {
    public boolean pyramidTransition(String bottom, List<String> allowed) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem756 prob = new Problem756();
        System.out.println(prob.pyramidTransition("XYZ", Arrays.asList("XYD", "YZE", "DEA", "FFF"))); // true
        System.out.println(prob.pyramidTransition("XXYX", Arrays.asList("XXX", "XXY", "XYX", "XYY", "YXZ"))); // false
    }
}

@@ -594,16 +594,126 @@
 / false%0A
+        System.out.println(prob.pyramidTransition(%22ABC%22, Arrays.asList(%22ABD%22, %22BCE%22, %22DEF%22, %22FFF%22))); // true%0A
     %7D%0A%7D%0A

Update problem 756