package leetcode;

import java.util.List;

/**
 * https://leetcode.com/problems/keys-and-rooms/
 */
public class Problem841 {
    public boolean canVisitAllRooms(List<List<Integer>> rooms) {
        // TODO
        return false;
    }

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

@@ -12,16 +12,41 @@
 tcode;%0A%0A
+import java.util.Arrays;%0A
 import j
@@ -343,16 +343,219 @@
 m841();%0A
+        System.out.println(prob.canVisitAllRooms(Arrays.asList(%0A            Arrays.asList(1),%0A            Arrays.asList(2),%0A            Arrays.asList(3),%0A            Arrays.asList())%0A        )); // true%0A
     %7D%0A%7D%0A

Update problem 841