| 17 | } |
| 18 | |
| 19 | void addSol(vector<vector<int>>& board, int n, vector<vector<string>>& ans) { |
| 20 | vector<string>arr; |
| 21 | for(int i = 0; i < n; i++) { |
| 22 | string str = ""; |
| 23 | for(int j = 0; j< n; j++) { |
| 24 | if(board[i][j] == 1) str.push_back('Q'); |
| 25 | else str.push_back('.'); |
| 26 | } |
| 27 | arr.push_back(str); |
| 28 | } |
| 29 | ans.push_back(arr); |
| 30 | } |
| 31 | |
| 32 | void solve(vector<vector<int>>& board, int n, int col, vector<string>& v, vector<vector<string>>& ans) { |
| 33 | if(col == n) { |
nothing calls this directly
no outgoing calls
no test coverage detected