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.
This is not a 7kyu kata...
can I strike my answer from ever having existed? is what I thought when I saw this
nice
getting real comfy with single liners now... dont know whether it'd be a good thing for the lon haul though!!
It's simply easier on the brain to read code top-down. 121 char length > PEP8 limit.
People love to flex with one-liners, and sometimes they are great... but other times like this one, bad practice.
Both list comprehension and RE is O(n) in this case.
This comment is hidden because it contains spoiler information about the solution
Amazing to see different people using exactly the solution like yours =)
Only way to avoid a timeout. What a dumpster-tier kata. Embarrassing for the creator.
what's wrong about this solution and which would be best practice in this case?
how does checking the arrays truthy value not meet the condition if the arr has a length greater than 1?
I too use a floor division, but not so concise way! Awesome!
clean code
Loading more items...