| 28 | } |
| 29 | |
| 30 | bool isValid(vector<vector<char>>& board, int row, int col, char c) { |
| 31 | for (int i = 0; i < 9; i++) { |
| 32 | if (board[i][col] == c) { |
| 33 | return false; |
| 34 | } |
| 35 | if (board[row][i] == c) { |
| 36 | return false; |
| 37 | } |
| 38 | if (board[3 * (row / 3) + i / 3][3 * (col / 3) + i % 3] == c) { |
| 39 | return false; |
| 40 | } |
| 41 | } |
| 42 | return true; |
| 43 | } |
| 44 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected