Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Third solution in Clear category for All the Same by tom-tom
from itertools import groupby
def all_the_same(elements):
return sum(1 for _ in groupby(elements)) < 2
Jan. 31, 2018
Comments: