1.We need a vector of vector , so, first we will make a string.
2.Then we will check that according to the current vector can we push the new string formed.
3.For making new string we will check in which index of the string the Q must be placed. For which we will put Q at every index.
4.If we are able to find the string, we push it to vector and call a recursion to push the next string.
5.When the size of vector will be n, we will push it to the vector.
fix:#443 added code for N-Queens in c++
Description
1.We need a vector of vector , so, first we will make a string. 2.Then we will check that according to the current vector can we push the new string formed. 3.For making new string we will check in which index of the string the Q must be placed. For which we will put Q at every index. 4.If we are able to find the string, we push it to vector and call a recursion to push the next string. 5.When the size of vector will be n, we will push it to the vector.