Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
AlltheSame.c solution in Clear category for All the Same by trudnopodobny
from typing import List, Any
def all_the_same(elements: List[Any]) -> bool:
if elements and elements.count(elements[0]) != len(elements):
return False
return True
Oct. 5, 2018