🏆 Meta Hacker Cup 2019 — Round 3: Renovations

Difficulty: Hard
Topic: Tree Algorithms, Path Queries, Modular Arithmetic
📄 View original problem statement