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.
Since this hasn't been updated in a year - I've gone ahead and change the parameter name to text.
Since this hasn't been updated in a year - I've gone ahead and added the example tests from the description.
Added some randomized tests, however the reference solution seems too inefficient to do many.
fixed
str
and output format issues. Not sure how to generate random tests...If the result needs to be de-duplicated anyway, why not return a
set
instead of a de-duplicated and sorted list? It's the most sensible type to be used in the situation.Needs random tests and bigger tests (currently the maximum string length is less than 10).
Needs sample tests.
Initial code argument name
str
is a built-in. It should be changed to something else.