Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
Slight Error

cednice

Oct 21, 2023

If altitude array values are all negative, then initializing maxAltitude to zero will produce the incorrect answer.

0

1

Comments
Comments
K
Kelvin Cuesta2 years ago

The problem statement states the rider starts at altitude 0!

E
ethanedge 2 years ago

As Kalvin said. It's very important to read the constraints to the problem.