A cool algorithm to check a Sudoku field?

前端 未结 25 1082
清酒与你
清酒与你 2021-01-30 09:19

Does anyone know a simple algorithm to check if a Sudoku-Configuration is valid? The simplest algorithm I came up with is (for a board of size n) in Pseudocode

f         


        
25条回答
  •  野性不改
    2021-01-30 10:00

    if the sum and the multiplication of a row/col equals to the right number 45/362880

提交回复
热议问题