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 tokiojapan55
def reverse_ascending(items):
result,s = list(),0
for e in range(1, len(items)):
if items[e-1]>=items[e]:
result.extend(sorted(items[s:e], reverse=True))
s = e
result.extend(sorted(items[s:], reverse=True))
return result
April 17, 2020
Comments: