7 kyu
The Baby Years II - Poo Roulette
220PG1
Loading description...
Fundamentals
Arrays
Strings
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.
Allowing input mutation allows such solutions to pass. See my fork to guard against it.
approved (by author I suppose)
This is not a useful custom error message.
fork
fixed
That's completely useless.
Why is that? How to make it better?
Well, why do you think showing a matrix with random width and height as a flat list of its elements is useful?
see fork above for fix
fixed
Wow, the random generator for this isn't going to be trivial.
Pete, I like your katas but after solving this one I couldn't eat breakfast.
Flat and FlatMap doesnt works in codewars?
You can
require('core-js')
.This is not tested.
Also, something tells me that would not be "calm before the storm" - that would be ":O !! WHERE'S THE BABY ?!" ( in large, friendly letters, of course :)
Didn't check, but are we sure this is an impossible case?
Or what should we return in that case if it is possible?
It was theoretically possible (although highly unlikely). Have fixed
Lack of fixed cases where the baby is not connected to at least three straight scents, like
Fixed
Ummm... rules are not clear...
Yep there has to be a baby, have updated description
Um.. there actually is a baby in this case... What i actually should have asked is
Do all ~s need to be in the straight line?
Yes, and attached to the baby. Descriptin and tests updated