</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

04

:

49

:

02

Get this deal
Back to Dashboard

Snowpack Trail

Easy

Question

You are planning a hiking trip along a trail represented as an elevation array. Snow accumulates or melts on the trail each day according to weather reports. You want to hike from point 0 to point n-1, but the climb cost must be minimized. Find the earliest day on which the minimum possible climb cost is achieved. ...