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.
Description should be made language-agnostic
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
nice :)
This comment is hidden because it contains spoiler information about the solution
Here's what I gather:
l
has 3 occurrences; the rest of the characters, including the space, each have 2 occurrences, so they stay in their positions (tie).Please explain the second example, as it's not clear (for me, at least)
l
s together in the first word, and not in the 1st and 3rd?o
stay in the 3rd word of the output, if thel
in the same word moved to the 1st?He
in the output?w
s andd
s are not grouped in the 3rd word of the output?to be clear, this is not the best solution as it uses O(n^2 log n) time; Blind4Basics solution is better.
Approved
^^ what johnny said
python new test framework is required. updated in this fork
Python: Random tests are vulnerable to input modification.
Python new test framework should be used (Refer this for more detail)
Oh, I totally forgot that range can do this.
And once more elegant one-liner!
Bravo!
Loading more items...