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.
Had fun with this kata...took me way longer than it should've to realize that you're supposed to return "" for n = 0, k = 0 or k > n and was bashing my head on the wall trying to figure out why I kept getting fatal errors lol. Need to read the WHOLE description when doing kata...d'oh
I did it in Python, and it didn't take me very long. Probably 10 mins?
can i ask how long did it took for you to solve it?
Im just curious.
Wow, that was fast! Nice one. Need to fix my solution with the right rounding now!
Thanks, fixed.
JavaScript ... anything seems to pass atm
Which language?
The tests don't work for this ... anything passes them and there are a few incorrect solutions already submitted. I'm pretty certain the tests should say assertEqual instead of just assert
You're welcome.
Not a huge fan of math katas but I enjoyed this one because it was straightforward and well-described. Thanks.
Fun kata! Unique premise and well-explained.
I found it hard, especially having to figure out how to grab each of the blocks. Figured it out in the end, was so satisfying.
Liked it. I would probably put this at a 6 or 7 kyu though.