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.
Upvoted.
Nice kata, thanks!
.
the sample tests are missing examples where the output lists/arrays aren't "naturally sorted" (to help the guy who doesn't actually read the description to spot the actual requirements... x) )
Python translation I liked this kata.
@the-toster:
The main idea, I believe, behind this problem is grouping of things, right?(if it would've been about data types, then that would be straight duplicate):
For grouping of things there is quite general kata: groupBy (There are more, just search "group" or similar keywords.)
Random tests added.
About duplicate, I'm not found same in suggested..
It pointed to test most basics of values manipulation, and I think special cases of JS typing will be not relvant here. Also, it may violate initial description. But this is a great point for advanced version of this kata.
Test title fixed, thank you.
The header is:
describe("twoOldestAges"
.Random tests should be added.
(And I'm not sure if it's a duplicate...)
Would adding edge cases like null, undefined, NaN be welcome?