Write an algorithm that returns the index of the first element that is less than its predecessor in the sequence s1,..., sn. If s is in non-decreasing order, the algorithm returns the value 0. Example: If the sequence is: AMY, BRUNO, ELIE, DAN, ZEKE, the algorithm returns the value 4.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here