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.
The description should have included at least one full example for the value of
n
.python new test framework is required. updated in this fork
nice
@fran496: no, but they're iterable objects that support indices, just like lists - except every element in a string is a single character. This means most of the syntax elements that can be used on lists can be used on strings as well.
except for mutating elements, you can do that with lists but not with strings
the kata specifies you don't have to deal with those
makes perfect sense! thanks
This comment is hidden because it contains spoiler information about the solution
Wait what?
This comment is hidden because it contains spoiler information about the solution
This is pedantic but the description does say:
Although the test cases doesn't test for the amount of parameters, this solution would technically be incorrect as it accepts 0 to N parameters.
this is what I tried to do!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is
n log(n)
time complexity. can't we simply doO(n)
without sorting?nice
Loading more items...