Available question text
In a rooted tree where each node has a positive or negative gate amount, Bob moves from a given node toward the root while Alice chooses a path from the root to any leaf; if they visit a node simultaneously the amount is split, otherwise only the first visitor gains/loses it — compute the maximum net income Alice can achieve. The core challenge is computing Bob's arrival times along his path and doing a DFS to maximize Alice's time-adjusted path sum.
Related questions
Continue with questions that share topics or the same question type.
- Binary Tree Maximum Path Sum
Coding · Binary Tree · Depth-First Search · DP on Trees
- Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree
Coding
- Closest Node to Path in Tree
Coding
- Disconnect Path in a Binary Matrix by at Most One Flip
Coding
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 2467. Most Profitable Path in a Tree
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source