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.
In this case as in any other case I think it is sensible to avoid nesting loops.
Nested loops make for hard to understand code and do push your algorithm into a higher complexity. Depending on the problem at hand (large n) this can be a deal breaker.
@gobe I like that you thought of the lines as relation between space and star and not just from the starpoint of view.
Makes your code easy to read and understand.