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
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
Loading collection data...
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