Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return false otherwise.
Examples:
Input x = [-3 0 7] Output tf is true
Input x = [2 2] Output tf is false
1 player likes this solution
1 player likes this solution
2 players like this solution
1 player likes this solution
1 player likes this solution
1 player likes this solution
6 players like this solution
Tags
Win cash prizes and have your live script featured on our website
Learn more
36 players like this problem
36 players like this problem