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.
same here.. did this same thing with string builder :D..
But don't throw exception with null and str.length() < 2
Omg, it's was so ez.
nice, very nice.
It's 'length', not 'lenght'! ;)
I was amazed when I saw this. I was trying the same code without using semicolons and it just doesn't work, the yield statement goes all the way to the destructuring assignment, yielding the whole array [curr, next].
I second this."Passed: 23, Failed: 0, Exit Code: 1", even with empty "fib()" it times out.
Hello! Very interesting and challenging kata.
I solved this for JS but it seems like O(logn) solution passes the random tests by a low margin (mine passes at 11600ms, although I only tweaked the algorithmic approach and not delve too much into code optimization). I think the len(B) === 5 along with the number of tests introduces too much variance. Did anyone else experience this as well?
Yes
Because that method returns another string, it doesn't mutate the string in place. Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
Python slove pow(2,31) in 0.0001049041748046875 sec on local mac air 2013
7/3=2
I hope it helped you
I can't believe this is possible. I mean, i expected append() to behave as a pass-by-reference at best, but this is something else, it feels like the language (interpreter...) is creating some obscure references and when something is being modified, it translates to everywhere in real-time (kind of a really really bizarre observer pattern)
Loading more items...