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.
The test is fine.
Wrong test case for Number.NaN Expected: ''Input number is Number.NaN'', instead got: ''Input number is NaN''
If the expected age depended on a specific year, it'd most likely be 2019, when the kata was created. The same issue has already been reported and fixed - show me proof that it's not working for you, or I'm closing the issue.
Age is based on the assumtion that we are still 2021
Better leave this kata!
ranking should be in ascending order
Test Failedexpected: >= 49
got: 48
Because Rajesh is the correct result (in every language). Show me why you think it should be Penny instead.
How then with the input:
String[] names = new String[] { "Sheldon", "Leonard", "Penny", "Rajesh", "Howard" };
int n =63;
you are supposed to get expected:<[Rajesh]> but was:<[Penny]>
The tests are fine. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
The tests are fine, if you want to use recursion that's up to you, and it is possible.
Java basic tests are not correct, as you need to use a static method and declare a static variable which holds the value for the next call and can not use recursion..