Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Oupbvyous solution in Clear category for Sum Consecutives by veky
import itertools
sum_consecutives = lambda a: [sum(group) for key, group in itertools.groupby(a)]
June 10, 2019
Comments: