package leetcode;

/**
 * https://leetcode.com/problems/sentence-similarity-ii/
 */
public class Problem737 {
    public boolean areSentencesSimilarTwo(String[] words1, String[] words2, String[][] pairs) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem737 prob = new Problem737();
        System.out.println(prob.areSentencesSimilarTwo(
            new String[]{"great", "acting", "skills"},
            new String[]{"fine", "drama", "talent"},
            new String[][]{{"great", "good"}, {"fine", "good"}, {"acting","drama"}, {"skills","talent"}}
        )); // true
    }
}

@@ -622,16 +622,584 @@
 // true%0A
+        System.out.println(prob.areSentencesSimilarTwo(%0A            new String%5B%5D%7B%22great%22%7D,%0A            new String%5B%5D%7B%22great%22%7D,%0A            new String%5B%5D%5B%5D%7B%7D%0A        )); // true%0A        System.out.println(prob.areSentencesSimilarTwo(%0A            new String%5B%5D%7B%22great%22%7D,%0A            new String%5B%5D%7B%22fine%22%7D,%0A            new String%5B%5D%5B%5D%7B%7B%22great%22, %22good%22%7D, %7B%22fine%22, %22good%22%7D%7D%0A        )); // true%0A        System.out.println(prob.areSentencesSimilarTwo(%0A            new String%5B%5D%7B%22great%22%7D,%0A            new String%5B%5D%7B%22great%22, %22blah%22%7D,%0A            new String%5B%5D%5B%5D%7B%7D%0A        )); // false%0A
     %7D%0A%7D%0A

Update problem 737