package leetcode;

/**
 * https://leetcode.com/problems/loud-and-rich/
 */
public class Problem851 {
    public int[] loudAndRich(int[][] richer, int[] quiet) {
        // TODO
        return null;
    }

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

@@ -287,16 +287,209 @@
 m851();%0A
+        System.out.println(prob.loudAndRich(new int%5B%5D%5B%5D%7B%0A            %7B1, 0%7D, %7B2, 1%7D, %7B3, 1%7D, %7B3, 7%7D, %7B4, 3%7D, %7B5, 3%7D, %7B6, 3%7D%0A        %7D, new int%5B%5D%7B3, 2, 5, 4, 6, 1, 7, 0%7D)); // %5B5,5,2,5,4,5,6,7%5D%0A
     %7D%0A%7D%0A

Update problem 851