You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**This function goes through the input array from the second element to the end. If the current number is less than the previous one, it increases the currentFallLength. If the currentFallLength is larger than maxFallLength, it updates maxFallLength. If the current number is not less than the previous one, it resets currentFallLength to 1. In the end, it returns maxFallLength as the length of the longest fall. */