Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Fourth solution in Clear category for All the Same by tom-tom
from itertools import groupby
def all_the_same(elements):
for i, _ in enumerate(groupby(elements)):
if i:
return False
return True
Jan. 31, 2018
Comments: