Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
We can sum booleans (False == 0 and True == 1) solution in Clear category for Majority by Phil15
def is_majority(items: list) -> bool:
return sum(items) > len(items) / 2
Jan. 12, 2020
Comments: