Whats wrong in my code test cases are passed not getting ac

got any thing

Nope, sorry.
Here is my submission if it helps: CodeChef: Practical coding for everyone

i have done the same thing

i got the mistake bro
it is intialising visted =0;in the following line
if(!dfs(a[i]-‘a’)){decide=1;break;}

1 Like

Cool.

hello bro how u solved covid sampling question in june long can you explain me

1 Like

I have posted my approach here.
Do reply back here if you need any clarification!