AirbnbCoding·45 minMembers
Ski Path — Max Score on a Weighted DAG
Members only
Given a weighted directed acyclic graph where edges carry a cost and nodes carry a reward, compute the maximum `sum(rewards) - sum(costs)` over any path from a fixed `START` to any `END` node.
SWE
graph
dp
topological-sort
medium
Frequency
Low
Last asked
2026-03-20
Stage
onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
