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.
Almost the same as mine, but more concise - thumbs up!
nub
in your solution has pitiful perfomance.It's also doing too much work.
Not an issue (at this stage).
This is a really nice solution!
My only qualm with it is that uniform is a partial function, so this solution would cause a runtime error when given an empty string.
my first implementation is similar to yours. but the performance is too bad... what is your magic? ;)
very clever solution!
I got a question about
s == e
, does it mean that one could go from 'a' to 'a' even 'a' is not in the graph?This comment is hidden because it contains spoiler information about the solution
I thinks this kata is the same as http://www.codewars.com/kata/53daa9e5af55c184db00025f.
This is a fair requirement, but should it be mentioned as part of the instructions, or be visible in the user-facing test suite? If there are specific requirements around exception handling, I think the user should be able to see them.
Okay, I've added a test to make sure that
copy_list
raises an exception when you hand itNone
.Please close this issue.
I'd expect a solution to throw an exception if I gave it None as input... so I will add this test.
Should Consider the situation of input is None.