Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Reverse Every Ascending by ssk8
def reverse_ascending(items):
rever, current = [], []
for item in items:
if current:
if current[-1] < item:
current.append(item)
else:
rever.extend(sorted(current, reverse=True))
current = [item]
else:
current.append(item)
rever.extend(sorted(current, reverse=True))
return rever
Jan. 26, 2020