Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Lion in Cairo solution in Clear category for Reverse Every Ascending by veky
def reverse_ascending(items):
run, current = [], -float('inf')
for element in items:
if element > current:
run.append(element)
current = element
else:
yield from run[::-1]
run, current = [element], element
yield from run[::-1]
Dec. 6, 2018
Comments: