Check whether there's no conflict in the board in each row, column and square
Note: Don't duplicate code. Be sure to use checkConflictForArray method.
For each row, column and square, first create array of number set.
Then call checkConflictForArray method.
Checking square is a little tricky, below is a possible algorithm:
for each square s from all the squares in the board
create a tempArr of size
for each position r c from all the positions in square s
copy src into a corresponding position in tempArr
you need to figure out a to map between the index in tempArr
and the index in square s
call checkConflictForArray with tempArr
@param board The current board that needs to be checked
@return true if no conflict; false otherwise, and when board is null
public static boolean checkConflictForBoardint board
return false;