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.
if i.islower()
is not necessary..
you converted the string to lower case in the first row
O(nlogN) -> You can solve it on O(n)
The kata needs to be solved
in-place
, you are using O(N) space for keeping a copy of thea
arrayO(N^2)
This comment is hidden because it contains spoiler information about the solution
Best answer!
Clean code and the most efficient. O(N) and only one pass
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution