Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner: split where diff solution in Creative category for Reverse Every Ascending by przemyslaw.daniel
from numpy import split as s, where as w, diff as d
reverse_ascending = lambda t: sum([list(x)[::-1] for x in s(t, w(d(t) <= 0)[0]+1)], [])
Aug. 4, 2020
Comments: