#include
using namespace std;
int count=0;
void subs(string str, string osf){
if(str.size()==0){
cout<<osf<<endl;
return;
}
char ch = str[0];
string ros = str.substr(1);
subs(ros,osf+ch);
subs(ros,osf);
count++;
}
int main(int argc, char const *argv[])
{
string str = “abcdefg”;
subs(str," ");
cout<<count;
return 0;
}
Code of subsequence is not submitting
it showing test cases error while submitting the code how can i resolve this problem
no, the page where we have to submit the code is not opening it continuously loading but ide is not opening.
hey @pal_singh_sonu, try it once in incognito mode. Share your code also saved in Coding Blocks ide.