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.
5 random tests are too small. Consider increasing them to at least 100 to ensure faulty solutions don't pass.
Missing edge case tests with
speed == 0 && desiredLength == 0
: https://www.codewars.com/kata/reviews/57b99f05a09e1c192d00008e/groups/5e2b1e715c9ce60001a18e7cSome solution pass all fixed tests and sometimes pass all random tests: https://www.codewars.com/kata/reviews/57b99f05a09e1c192d00008e/groups/5e2b1af7a778610001f7ddc3
Nice kata!
two reduces because reduce is my favourite function
I intended the low number of shaves to be the a secondary condition, as I said.
'If there are multiple possible routes, please return the one with the least shaving required. Tony hates shaving.'
I'll the description to make this clearer! THanks for the feedback.
Definitely, the best choice is not to shave at all, since, least days and least shaves conditions are conflicting.
This sentence makes me feel that the best choice is not to shave the beard. Because
Tony hates shaving.
Least number of days should be main priority. I also intended for each shaving to add a day to the overall time. I will revise the description to make this clearer :)
I agree! There's a lot of learning packed into this one kata!
This comment is hidden because it contains spoiler information about the solution
Cool Kata! Made me think about different ways to extract information from strings.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...