Question - CodeChef: Practical coding for everyone
Solution link - CodeChef: Practical coding for everyone
Can anyone check why this soln is getting WA?
Question - CodeChef: Practical coding for everyone
Solution link - CodeChef: Practical coding for everyone
Can anyone check why this soln is getting WA?
Cannot view the solution since it’s contest, provide the code with proper indentation here itself
@prabhu04 Your code is failing here:
if(s.size()!= t.size()){
cout<<"NO"<<"\n";
break;
}
If for any test case your answer is “NO”, then you will be break out of the while loop and remaining test cases will be missed out.