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.
That was a false intuition I had at that time because... this approach passed the tests (which are pretty insufficient). I've been proved wrong about that with other problems.
@Blind4Basics I am also interested in why checking one subsquares is enough as well.
@Blind4Basics: any explanation why checking only one subsquare is enough ?
This comment is hidden because it contains spoiler information about the solution
lol
This comment is hidden because it contains spoiler information about the solution
That's a very good observation! I assumed that the input is well formed, but I agree that nothing guaranties that. We can change the comparison:
if len(np.unique(view)) != 9:
to :
if not np.array_equal(np.sort(view), np.arange(1,10)):
so that now it checks only for the array [1,2,...,9]