We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d441d4 commit da0ff4cCopy full SHA for da0ff4c
find_the_highest_altitude_1732/solution.go
@@ -18,9 +18,9 @@ func largestAltitude(gain []int) int {
18
}
19
20
// catch is that zero starting point could be the highest altitude
21
- max := 0
+ highest := 0
22
for _, s := range prefixSums {
23
- max = int(math.Max(float64(max), float64(s)))
+ highest = int(math.Max(float64(highest), float64(s)))
24
25
- return max
+ return highest
26
0 commit comments