code link :https://ide.codingblocks.com/s/178794
What is problem with my code?
Hey @siddharth9k9 your terminating condition for the recursive function is incorrect.
if(close == n){
cout << s << endl;
return;
}
is the correct terminating condition, please replace if(pos == 2*n) block with given block.