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.
A minor optimisation could be to set j = i + 1, as to avoid some repeated comparisons, otherwise it looks good
There are already open issues about incomplete tests, there's no point in raising new ones.
In c my solution was accepted, even if i checked only for blocks correctness,
{{1,2,3,1,2,3,1,2,3},
{4,5,6,4,5,6,4,5,6},
{7,8,9,7,8,9,7,8,9},
{1,2,3,1,2,3,1,2,3},
{4,5,6,4,5,6,4,5,6},
{7,8,9,7,8,9,7,8,9},
{1,2,3,1,2,3,1,2,3},
{4,5,6,4,5,6,4,5,6},
{7,8,9,7,8,9,7,8,9}}
should return false but my code returns true, in spite of this I passed all the tests.
please add check for row/column number repetition
grazie maestro <3
puoi evitare il break in quanto se si avvera quella condizione la funzione ritorna false, e quindi interrompe già il suo flusso uscendo dal ciclo. per il resto è ok <3