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.
Top Level Domain, like .by, .io, .dev, .funnitls, et cetera.
I think the description should include this info as well.
I spend more than one hour to spend to solve..but u spend less than nano second!!! Great Job man!!!
legend
Damn that's clever.. Great job!
This comment is hidden because it contains spoiler information about the solution
I'm going to tell all my friends that this is what clean code looks like.
My head is lagging
Clever (4,7s) but not best practice.... Sorry....(my code = 3,9s, but not clever :-( )
Solution of O(nlogn) complexity for O(n) problem, though
it is pass-by-value since the & was removed. So the input parameters are in fact copies. The code is fuly eqivalent to the function taking const& and then making explicit copies.
I don't think changing the function signature is a good idea. Parameters are modified inside the function
and a user will get a trash instead of original strings.
Maybe parameters were const on purpose...
Senior
This comment is hidden because it contains spoiler information about the solution
Impressive.
Loading more items...