package leetcode;

/**
 * https://leetcode.com/problems/regions-cut-by-slashes/
 */
public class Problem959 {
    public int regionsBySlashes(String[] grid) {
        // TODO
        return 0;
    }

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

@@ -282,16 +282,600 @@
 m959();%0A
+        System.out.println(prob.regionsBySlashes(new String%5B%5D%7B%0A            %22 /%22,%0A            %22/ %22%0A        %7D)); // 2%0A        System.out.println(prob.regionsBySlashes(new String%5B%5D%7B%0A            %22 /%22,%0A            %22  %22%0A        %7D)); // 1%0A        System.out.println(prob.regionsBySlashes(new String%5B%5D%7B%0A            %22%5C%5C/%22,%0A            %22/%5C%5C%22%0A        %7D)); // 4%0A        System.out.println(prob.regionsBySlashes(new String%5B%5D%7B%0A            %22/%5C%5C%22,%0A            %22%5C%5C/%22%0A        %7D)); // 5%0A        System.out.println(prob.regionsBySlashes(new String%5B%5D%7B%0A            %22//%22,%0A            %22/ %22%0A        %7D)); // 3%0A
     %7D%0A%7D%0A

Update problem 959