Solution: Find the Highest Altitude
C# solution for the Find the Highest Altitude problem using the Knowing What to Track pattern.
We'll cover the following...
We'll cover the following...
Statement
You are given an integer array gain where gain[i] represents the net change in altitude after traveling from point i to point i + 1. The altitude at the starting point is
Compute and return the highest altitude reached at any point during the trip, including the starting point.
Constraints:
n == gain.length...