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 the real winner for clever solutions here. Not best practices, but certainly neat!
8 kyu has the following for examples though:
This seems to fit, at least to me.
Some random tests wouldn't go amiss. If the trailing sorted string is intentionally there as a red herring, cool, otherwise it doesn't really add anythign to the kata.
I googled "javascript pass arguments to another function" can got the solution. Google-Fu is 90% of code skill.
function isValidIP(str) {
return null;
}
This code passes the first nine tests in javascript. Further, this seems like a basic regex task, something that's suitable for 6th or even 7th kyu.
This kata has some serious flaws.
I agree. In Javascript it's a trivial regex one liner, and there's plenty of regex kata at 6th kyu.
Perhaps this function is intended for reuse in games other than blackjack that use the same scoring? :D
One of the tests I ran had a final score of 35.
could use a more clear description as noted by many others.
Your tests never check to see if the private variables are actually private.
Your description would benefit from examples. More tests cases would be nice, especially to test the case where n==m: cubeSum(5,5), for instance.
The description could be made a little more clear, but overall it's a solid low level challenge.
Oh dang it. The recursive options have bugs (regarding zeroes) from me doing a bit of editing and somehow clicking "post final" instead of "run tests" again. Whoops.
Well, keep it up. I'm still unable to really think in this style of programming, but seeing things like this helps a lot!
I think this is one of the few times I've seen the "super-cool functional style" solution that's actually less elegant in appearance than the iterative loop based options. Still, facinating.