🏆 Meta Hacker Cup 2018 — Round 2: Jack’s Candy Shop

Difficulty: Medium
Topic: Tree Data Structures & Subtree Queries
📄 View original problem statement