Search
⌘K
Get Premium
Leetcode 1732. Find the Highest Altitude
Given an array of altitude gains between consecutive points starting from altitude 0, compute the running cumulative altitudes (prefix sums) and return the maximum value encountered. This is essentially a prefix-sum problem—track cumulative sum and its maximum.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.