Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
groupby solution in Clear category for Sum Consecutives by Olpag
from itertools import groupby
sum_consecutives = lambda a: [sum(g) for _, g in groupby(a)]
Sept. 19, 2019