Pls tell error in this code.. one test case not passing

@Vaibhav277

The idea is a bit flawed because you found out the lcs first between two strings and then tried to compute the lcs of the third string with the resultant one. Theres a possibility that you do the same process with the second one and third one and find the length again with the first one.
Similarly, first find the lcs between first and third and then calculate the lcs between resultant and second. Just give it a thought.

If you face any difficulty, please revert.

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.