Skip to content

Instantly share code, notes, and snippets.

@jezinka

jezinka/SudokuBacktracking.groovy Secret

Last active May 24, 2020
Embed
What would you like to do?
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