Not sure why the test cases are passing, submitted it on leetcode and all test cases were passed.Please look into my code:
Edit Distance Unable to pass test cases
Did your solution pass in leetcode? As you have mentioned that it passed then where are you failing?
Its not passing on the coding blocks platform
Did It pass in leetcode?
Yes it did, the same code worked.
Let me check it again.
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.