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.
Hi, please don't attempt to do
1kyu
katas unless you're confident in your skills,1kyu
katas are the most difficult ones. You should be doing8kyu
katas instead.In any case, this is your code's issue, you can't create a array with size greater than
2^32 - 1
. And this approach wouldn't work anyway ;-)Test.assertEquals(elderAge(28827050410, 35165045587, 7109602, 13719506), 5456283)
getting a range error for the above test case, invalid array length
How can you tell that your code returns a correct result? Because it does not.
Did you try to debug your code in a step-through debugger and see what happens wrong, and when? Hint: the problem is related to the line
j += " "
.Hi, am having an issue, my code returns the correct result but there is always undefine at the beginning of the returned string, any help?