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.
CS: should use function instead of class methods (to be aligned with the updated JS
Do not post solution in discourse. Also, not a kata suggestion
Can you please explain how you got this answer?
You should do
std::cout <<
to display the input, output and any intermediate values you've used.Also, seems like you've solved it, closing!
Approved
Approved by someone
Approved by someone
Resolved
Why include types in a 7 kyu?
Fixed the
facts
\context
issue.repr(word)
==$word
in JuliaDone.
The code terminates when it reaches the last word of the string. (i.e, all comparisons with previous neighboring word have been done)
OP solved it, closing
The moves do not occur for substrings having equal sizes.
You might have seen the test case below and got confused.
But, we start comparing from the 2nd word (1st-index) with the 3rd word (2nd-index). Clearly, the 2nd word is shorter than the 3rd, so we swap their positions. Kindly refer to the example in description for clarity.
Approved
Added
Your computation for total combination is wrong.
Loading more items...