package leetcode;

import java.util.List;

/**
 * https://leetcode.com/problems/brace-expansion-ii/
 */
public class Problem1096 {
    public List<String> braceExpansionII(String expression) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem1096 prob = new Problem1096();
        System.out.println(prob.braceExpansionII("{a,b}{c{d,e}}")); // ["acd","ace","bcd","bce"]
        System.out.println(prob.braceExpansionII("{{a,z},a{b,c},{ab,z}}")); // ["a","ab","ac","z"]
        System.out.println(prob.braceExpansionII("{a,b,c}")); // ["a","b","c"]
        System.out.println(prob.braceExpansionII("{{a,b},{b,c}}")); // ["a","b","c"]
        System.out.println(prob.braceExpansionII("{a,b}{c,d}")); // ["ac","ad","bc","bd"]
        System.out.println(prob.braceExpansionII("{a{b,c}}{{d,e}f{g,h}}")); // ["abdfg", "abdfh", "abefg", "abefh", "acdfg", "acdfh", "acefg", "acefh"]
    }
}

@@ -321,16 +321,175 @@
 1096();%0A
+        System.out.println(prob.braceExpansionII(%22a%7Bb,c%7D%22)); // %5B%22ab%22,%22ac%22%5D%0A        System.out.println(prob.braceExpansionII(%22%7Bc%7Bd,e%7Df%7D%22)); // %5B%22cdf%22,%22cef%22%5D%0A//
         
@@ -577,16 +577,18 @@
 ,%22bce%22%5D%0A
+//
         
@@ -678,16 +678,18 @@
 c%22,%22z%22%5D%0A
+//
         
@@ -751,32 +751,34 @@
 / %5B%22a%22,%22b%22,%22c%22%5D%0A
+//
         System.o
@@ -842,24 +842,26 @@
 a%22,%22b%22,%22c%22%5D%0A
+//
         Syst
@@ -938,16 +938,18 @@
 %22,%22bd%22%5D%0A
+//
         

Update problem 1096