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.
nicee
Its not work with Unicode string. Just test "вася".
Damn this is cool
The strings don’t need to be put back into a slice from the map keys, the code can just iterate over the map keys directly. (We will be sorting the results already anyways.)
strings.Contains
is slightly more clear in purpose and can run faster, as it can short-circuit return on the first match, and not looking for any additional matches.never saw this hardworking guy!
and yeah thanks to all the people in the discussion section, who saved my hours of time.
Read the description: "a string strng of n positive numbers (n = 0 or n >= 2)".
test cases might help to understand the question.
Funny kata to practicing sort. Thanks.
Less lines != better
not best practices because it mutates the input
Ranking cannot be changed
This comment is hidden because it contains spoiler information about the solution
Genius ! Algrithme is the king.
inspired.
A few more line might improve performance a lot for some cases, but may destroy the beauty of your wonderful codes, and look ugly definately.
From engieering point of view, I would believe a few more lines is better.
It is a little difficult to understand, my ugly version might be a little easier for most of us(not every one is number master)
Clever !
I have simillar idea, but you code is super tidy and clean !
from the description:
All inputs are positive, non-zero digits.
Loading more items...