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.
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.