Available question text
Given a perfect binary tree with costs on each node and the ability to increment any node's cost by 1, find the minimum number of increments needed so every root-to-leaf path has the same total cost. Solve by a bottom-up traversal (DP) that at each node raises the smaller child path total to the larger, accumulating the increments required.
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 2673. Make Costs of Paths Equal in a Binary Tree
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source