Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
itertools.groupby to group consecutives, sum to sum solution in Clear category for Sum Consecutives by Phil15
sum_consenutives=lambda n:[sum(g)for _,g in __import__('itertools').groupby(n)]
June 8, 2019