Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Java - random test cases do no pass sometimes.
This is masterful, I love it 😂
Golfing on the variable name
Use of count method
Use of an direct return
Condition without if/else
TL;DR
a very very long way of writing
solution = lambda v: len([x for x in v if x is True]) > 1
Fun fact - I have 0% chance of figuring out how this works.
Imporoving on @SiegHeil answer, this will be better:
return param.count(True) > 1
i think that will be better:
return True if param.count(True) >= 2 else False
But it is good for a laugh, plus taught me __builtin_popcount
There are so many things wrong in this solution, it amazes me it even works.
this solution contains "bool" 8 times lol