Problem 2603 · Hard

Collect Coins in a Tree

Strip coinless leaves, then two more layers of leaves, and pay two steps for each edge that remains.

Open the interactive visualisation