My code is passing all the given cases but when submitting it is not passing all the test cases.
please help me in this code only. how can i get it to pass all the cases.
Buddy strings - Leetcode problem
@mikkyimran you are only checking for consecutive string character but you can swap any two character
for example
A-abcde B-aecdb
answer will be true because you can swap b with e
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.