🏆 Meta Hacker Cup 2015 — Round 3: Gentrification

Difficulty: Hard
Topic: Strongly Connected Components, Graph Theory
Problem URL: Facebook Hacker Cup