output for test case 1 is right but is giving wrong ans
Output is right but is giving wrong answer
@ritesh2000 hey ritesh there may be some mistake in your code. so please make sure you’re handling all cases. you can share your implementation so that we can verify your code make sure your code was saved in coding blocks ide and share that link here it would be easy for us.
@ritesh2000 hey ritesh there is some mistake in your code I Have modified your code
go through this modified code.
Thanks for help but i think both the logic are same and i have done dry run for my code the output it gives is also a correct lcs!!
@ritesh2000 hey ritesh there is a hidden test is not working with your code It is very large if you are ready to dry run I can share it.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.