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.
This comment is hidden because it contains spoiler information about the solution
The recursive backtracking structure is clear, what did you to reach sub 3s performance?
Hi Kacarott, I have corrected myself in the 2nd reply; sorry about the confusion.
As mentioned in the 2nd comment in the question, "the minimum requirement for unique solution is 17 givens" is a bit misleading.
17 is not a condition to have multiple solutions.
Also note that over 500 people have solved this in Python, so the chance that all 500 of them made the same error as the checker in order to pass is very unlikely. I am going to close this, but you can post more evidence if you are convinced there is a problem.
The two solutions you showed in the original post are not the same, they are different. Have a look at both of them where I've marked Xs.
Therefore there is no unique solution.
I took another look, the solver is correct; the assumption that givens >= 17 would guarantee a unique solution is falsy.
Potential an error in the checker script:
The following input generates a false error message "invalid should raise error":
I have (possibly) replicated how to the two solutions are found on different paths, but they are the same.
Below is my results without early exit; with givens == 27, the question cannot have multiple solutions.