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.
You just need to create one specific latin square for each n. Looking at examples for n=1,2,3,4 might make clear a pattern that can be generalized. The tests only run to n=200, so performance is not a concern.
A latin square is an n × n array filled with the integers 1 to n, each occurring once in each row and column.
You can make it as random as you want as long as it's a Latin Square