Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First: check if number of elements in items is double number of True values solution in Clear category for Majority by leggewie
def is_majority(items: list) -> bool:
# check if the number of elements in the items list is at least double
# the number of True values (False has value of 0 in summation)
return len(items) < sum(items)*2
June 3, 2021
Comments: