Problem 2925 · Medium

Maximum Score After Applying Operations on a Tree

Choose which values to zero so every root-to-leaf path keeps a positive value, using a bottom-up minimum cover.

Open the interactive visualisation