Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active May 24, 2020 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/abe6b920e815c4a8f514b4783d0833fe to your computer and use it in GitHub Desktop.
Save jezinka/abe6b920e815c4a8f514b4783d0833fe to your computer and use it in GitHub Desktop.
SudokuBacktracking(List<List<Integer>> board) {
this.board = board.collect { it.collect() }
this.rowIndex = 0
this.columnIndex = 0
this.board.eachWithIndex { List<Integer> row, int i -> row.eachWithIndex { int col, int j -> this.isFixedNumber.put("$i$j".toString(), col != 0) } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment