what i want to do(python language):
I want to check whether it is possible to obtain a list by deleting one of its element such that the list is in increasing order .
e.g: for list = [1,2,4,3], it is POSSIBLE to obtain a list that is in increasing order by removing 4 .
. is there any way such that i can remove 1 number (temporary) and check whether:
sorted(list) == list
e.g: list = [1,2,4,3]
.1st i want to remove 1 and then check with [2,4,3]
.then i want to remove only 2 from list and check with list [1,4,3] and so on ..
How can i do that in python;