To find how many solution in inputs, it maybe works O(|blanks|^9)
This is quite obviously false. In fact, finding the exact count of sudoku boards was quite a difficult problem and solving it took the mathematical community quite a while. As far as I know, there's still no known closed form ...