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.
not a good practice as we are splitting the string and indexing it at each iteration while it can be done only once
They are running, and your code passes them. Copy your code, click reset, paste your code back in, and try again.
The sample tests in python are not running.
This comment is hidden because it contains spoiler information about the solution
Nice. But why
4*n-1
? Thanks.This is a trivial point, but is there a mistake in the statement?
We are assuming that n is even, and then multiplying by 2.