bhaiya is question mai order bhi matter krta ha kya??
Sequence and subset
Hey @sehrawat
Yes order is also important because in background it will do string matching between your output and editorial code output
to order reverse kasa kru bhaiya isma
Haa u just need to do a small change in recursion order
sequence(in,out,i+1,j); //add here
out[j]=in[i];
sequence(in,out,i+1,j+1);
// remove from here
but bhaiya what if saara character same ho
like aaaa
to isma repeat honga to jo final count aayaga usma kaasa kranga
hope samj gya honga aap
Is question mein distinct subsequences nhi maange
Incase they ask for it toh ham Set STL use krte h maybe tumne ab tak pdha na ho
So abhi mat socho uske baare me
ok thank u bahiya
1 Like