This comment is hidden because it contains spoiler information about the solution
How exactly do you expect Python to parse "abc" as a number?
"abc"
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
nice :)
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).
l
Please explain the second example, as it's not clear (for me, at least)
'Hello He worldwrd' --> 'lllHeo He wordwrd' (not 'lllHHeeoo wwrrdd')
o
He
w
d
to be clear, this is not the best solution as it uses O(n^2 log n) time; Blind4Basics solution is better.
Approved
Loading collection data...
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...