MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / nQueen

Method nQueen

Backtracking/Homework/nQueens.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57 }
58 vector<vector<int>> nQueen(int n) {
59 // code here
60 vector<vector<int>> board(n,vector<int>(n,0));
61 helper(board,n,0);
62 return ans;
63 }
64};
65
66// { Driver Code Starts.

Callers 1

mainFunction · 0.45

Calls 1

helperFunction · 0.70

Tested by

no test coverage detected