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.
相关推荐