Available question text
Select a subset of nodes in a rooted tree to collect their positive values (setting them to zero) to maximize total collected value subject to the constraint that no root-to-leaf path becomes entirely collected (i.e., you must leave at least one node on every root-to-leaf path). This reduces to choosing a minimum-weight set of “kept” nodes that hits every root-to-leaf path and is typically solved with a tree DP.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2925. Maximum Score After Applying Operations on a Tree
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source