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.
It does.
Same problem
either wrong report or fixed by someone
The first ';' of the
for
is empty because my loop variablesa
andb
were already initialised outside the loop, and the last;
on that line is the emptyfor
statement block because there is nothing to do - i.e the purpose of the loop is to side-effect thea
andb
until they cross.a
andb
values represent how much space padded is needed for the strings. The" ".repeat(...)
simply adds the appropriate number of spaces.To understand it, you should just temporarily fork my solution so you can print out the values to see what is hapenning.