Problem 1311 · Medium

Get Watched Videos by Your Friends

Breadth-first search finds the people exactly the given number of friendships away, then their videos are counted and sorted.

Open the interactive visualisation