Loading environment...
You are walking along a snowy Christmas lane lined with gift stations. Each station contains a gift with value (some gifts are bad… they can be negative).
You start at station 1 and want to reach station . From station , Santa allows you to jump forward to any station such that:
Each time you land on a station, you collect the gift there.
Your goal: Collect the maximum total gift value possible from station station .
Print a single integer — the maximum total gift value you can gather on your journey to the final station.
No comments yet. Be the first to comment!