Python - Remove non-increasing elements
Given a list, our task is to write a Python program to remove all the non-increasing elements from the list. Input : test_list = [5, 3, 4, 5, 7, 3, 9, 10, 3, 10, 12, 13, 3, 16, 1] Output : [5, 5, 5, 7, 9, 10, 10, 12, 13, 16] Explanation : 3, 4 are omitted as 5, (greater element) had occurred before