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.
This comment is hidden because it contains spoiler information about the solution
How exactly do you expect Python to parse
"abc"
as a number?Because you cannot convert a letter to a number.
How that's works?
This solution is actually quite close to the timeout limit and will sometimes not even make it. Not that mine is any better really!
best idea for solution!
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
Loading more items...