O(1) instead of O(81). 2. Minimum Remaining Values (MRV) heuristic -- always pick the empty cell that has the fewest legal candidates. Cells with only 1 candidate are forced; picking them first ...
To use the program, you need to call sudoku_king() on an list of lists. The data should be in the format that follows: test_puzzle_rows = [[5,3,0,0,7,0,0,0,0], [6,0,0 ...