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.
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.
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.