Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
groupby solution in Clear category for Group Equal consecutive by flpo
from itertools import groupby
def group_equal(els):
return [list(g) for _, g in groupby(els)]
Oct. 29, 2018
Comments: