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.
i cant understand
10 months ago and nobody fixed it yet? Wow!
why am I laughing at this? I just imagined it in my head. I can't laugh
They must have been style choices or something. I liked the way the < 1 and < 2 lined up, and I wanted to look cool using more recursion
why not n==0 when the only input smaller than 1 is 0
why converting the input to a string instead of just using the string "0" when it is always the same constant value?
same applies for second line, plus why using solve(n-1) when can not be anything else than 1
with the usage of
there would be so many less string conversions and depths of recursion
I think it shouldn't matter for most kinds of solutions.
This looks like a good kata and wanted to try it but I don't know how to count the occurrences of non-ascii characters, so I'll have to pass. Googled it but couldn't find anything definitive.
Didn't know about those, thanks
__mul__are faster than lambdas. yoou could be faster with it.
Are you sure this code is O(n^2)? It appears to me that it is O(n), as it loops as many times as there are segments of 8 bytes in the input list
for this time i dont know that the Set can work so, it's a real magic for me, it's realy awesome
I've actually removed that requirement. As you said, it can't be tested.
i dont think this is an issue, because the semantics are different: (named) tuples are immutable, while class instances are mutable
Loading more items...