package leetcode;

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

/**
 * https://leetcode.com/problems/get-watched-videos-by-your-friends/
 */
public class Problem1311 {
    public List<String> watchedVideosByFriends(List<List<String>> watchedVideos,
                                               int[][] friends,
                                               int id,
                                               int level) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem1311 prob = new Problem1311();
        System.out.println(prob.watchedVideosByFriends(
            Arrays.asList(
                Arrays.asList("A", "B"), Arrays.asList("C"), Arrays.asList("B", "C"), Arrays.asList("D")
            ), new int[][]{{1, 2}, {0, 3}, {0, 3}, {1, 2}}, 0, 1)); // ["B","C"]
        System.out.println(prob.watchedVideosByFriends(
            Arrays.asList(
                Arrays.asList("A", "B"), Arrays.asList("A", "B", "C"), Arrays.asList("B", "C"), Arrays.asList("D")
            ), new int[][]{{1, 2}, {0, 3}, {0, 3}, {1, 2}}, 0, 1)); // ["B","A","C"]
        System.out.println(prob.watchedVideosByFriends(
            Arrays.asList(
                Arrays.asList("A", "B"), Arrays.asList("C"), Arrays.asList("B", "C"), Arrays.asList("D")
            ), new int[][]{{1, 2}, {0, 3}, {0, 3}, {1, 2}}, 0, 2)); // ["D"]
    }
}

@@ -429,23 +429,8 @@
 ) %7B%0A
-        // TODO
 %0A   
@@ -889,32 +889,311 @@
  Arrays.asList(%0A
+                Arrays.asList(%22A%22, %22B%22), Arrays.asList(%22C%22), Arrays.asList(%22B%22, %22C%22), Arrays.asList(%22D%22)%0A            ), new int%5B%5D%5B%5D%7B%7B1, 2, 3%7D, %7B0, 3%7D, %7B0, 3%7D, %7B0, 1, 2%7D%7D, 0, 1)); // %5B%22B%22,%22D%22,%22C%22%5D%0A        System.out.println(prob.watchedVideosByFriends(%0A            Arrays.asList(%0A
                 

Update problem 1311