Project Euler #96: Su Doku

  • + 0 comments

    A fun exerise! Helps me understand DFS a bit better now. The key to performance is to always find the position which has the least number of candidates.

    Each position has nine (1-9) candidates at first. Use the row, col and block information then the candidates can be reduced.