Array
1732. Find the Highest Altitude
A cyclist starts at altitude 0; gain[i] is the altitude change on segment i. The altitude after j segments is the sum of the first j gains. Find the maximum altitude reached. The altitudes are prefix…
Loading…
A cyclist starts at altitude 0; gain[i] is the altitude change on segment i. The altitude after j segments is the sum of the first j gains. Find the maximum altitude reached. The altitudes are prefix…
Loading…