Remove every asset on the path from the root to one chosen asset. The tree falls apart; score each piece by the GCD of its values and maximize the total.
Remove every asset on the path from the root to one chosen asset. The tree falls apart; score each piece by the GCD of its values and maximize the total.
Opens with the full question.