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.
good
I see your point, but as a beginner, the first time I cam across such a solution, it really opened my eyes.
Cool trick, but I think this misses the point of the challenge. The goal seems to be practicing logic and problem-solving, not just renaming an existing method. This might confuse beginners who are trying to learn how to implement things themselves. It’s clever, but not the best for learning.
Great!
I think this conditional is taking advantage of the fact that an empty array is "falsy" in python which is why this works :)
Didn't know about this If Array meaning that there's an array there. That's great.
This helped a lot. Thanks. Haha
clever, but suboptimal
Nice solution
Yes, @Invisibleman. Python uses
None
, rather than null though.Both list comprehension and RE is O(n) in this case.
I approached same this way
meh... questionable readability factor here
i have question ....is it clear ??
This comment is hidden because it contains spoiler information about the solution
Loading more items...