MCPcopy Create free account
hub / github.com/Hsinha11/Leetcode-solutions / solveNQueens

Method solveNQueens

-51-N_Queens/Code.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 vector<vector<string>> solveNQueens(int n) {
47 vector<vector<int>>board(n, vector<int>(n, 0));
48 vector<string>v;
49 vector<vector<string>>ans;
50 solve(board, n, 0, v, ans);
51 return ans;
52 }
53};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected