admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Check if list is strictly increasing

Given a list as input, your task is to check if the list is strictly increasing. i.e. the numbers in the list should be in an increasing order. Hence, a number at a lower index should always be smaller than a number at a higher index.
Assume that the list will only have positive integers.
Print "yes" if the list is in strictly increasing order and print "no" if the list is not strictly increasing. 

Sample Input:
[1,4,300,400,900]
Sample Output:
yes

Published By : Vaibhav G. Khetal
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin