37. Sudoku Solver

backtracking

T: O(9!^9), 每列有 9! 的放入可能, 9 列, 所以是 O(9!^9)

S: O(9*9) = O(81)

更好懂的寫法

Last updated

Was this helpful?