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.
Yup:
for
loop. There're 10 of these now.Okay, I think I finally managed to wrap my head around this, random test cases and all. Please have a look if I missed/misunderstood anything. Again, thanks for helping out.
Well, I just pasted it in and it seems to be working. I'll try to figure out random test cases in a day or two. Thanks for your feedback and input!
I'm a little shaky on testing and it seems that implementing
Test.assertApproxEquals
will require overhauling the tests altogether because of the comparison I use. I'll try to figure it out, but, if you feel up to it, contributions are more than welcome ;-)I'll change the output for 0 (done). Thanks.
Yeah, I didn't check around for similar kata, just wanted to try and publish my own. Because reasons. Guess I'll un-publish it in a few days.
Sorry about that. All fixed now. Thanks for pointing this out.