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.
I added the example. Is it clearer now?
Yes, pls: add the ouput example to the instructions. That would be helpful.
No, you need to return one dimensional array, and in such array position of a queen is
for each x in (0 ... size), queen[x] = (x, returned_array[x])
. So, for example, if you return array[1, 3, 0, 2]
, it means that there are 4 queens at coordinates:Since in this problem each queen position has different
x
, we do not have to return it explicitly because it can be expressed as index inreturned_array
.Is it clearer now? Maybe I should add such example to the description.