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.
Resolved
That's exactly why I hate illogical usage of global variables.
C
logic with headers is so much better in cases like this.Random tests ask for 0 position, although the description says "Strings are 1-indexes (sic)" and expect strange results, e.g.:
symbols
is used inside a lambda/function, and code inside those is executed only when you actually call the function. And as the first call is done after teh definition ofsymbols
, there's no problem.still the expected result to compute before.
anyway...
Too much bother :)
right on
is that you who worte them? If so, see message above... :/
random tests there are, now, ok, but well... what a "piece of code"... x/
Resolved
Renamed it to
swap_letters
Renamed parameter to
word
Added to description that positions starts from 1. Also added one more example.
It is not clear that positions are 1-indexed.
That's rather an issue.
Loading more items...