to check whether num is valid in that row
| 9 | |
| 10 | // to check whether num is valid in that row |
| 11 | bool isRowSafe(vector<vector<char>>& board, int row, char num) |
| 12 | { |
| 13 | for(int col = 0;col<9;col++) |
| 14 | { |
| 15 | if(board[row][col] == num) |
| 16 | return true; |
| 17 | } |
| 18 | return false; |
| 19 | } |
| 20 | |
| 21 | // to check whether num is valid in that column |
| 22 | bool isColumnSafe(vector<vector<char>>& board, int col , char num) |
nothing calls this directly
no outgoing calls
no test coverage detected