1. 程式人生 > >leetcode-36-Valid Sudoku

leetcode-36-Valid Sudoku

Use 3 vector of maps to store current number, then check the current situation is fit the rule or not.

The trick part is for the cell map, remember (i / 3) * 3 + j / 3 stand for the nth cell.