diff --git a/balancedparanthesis.cpp b/balancedparanthesis.cpp new file mode 100644 index 0000000..91ac417 --- /dev/null +++ b/balancedparanthesis.cpp @@ -0,0 +1,24 @@ +#include +using namespace std; +void balancedparanthesesis(char *a,int i,int n,int open,int close){ + if(i==2*n){ + a[i]='\0'; + cout<>n; + balancedparanthesesis(a,0,n,0,0); +} \ No newline at end of file