7 kyu
Separate basic types
928 of 1,298the-toster
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
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) )
Upvoted.
Python translation I liked this kata.
.
The header is:
describe("twoOldestAges"
. Random tests should be added. (And I'm not sure if it's a duplicate...)Test title fixed, thank you.
Random tests added.
About duplicate, I'm not found same in suggested..
@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.)
Would adding edge cases like null, undefined, NaN be welcome?
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.