You are viewing a single comment's thread. Return to all comments →
Just remember that there will be two conditions to check. (Look out for abc and abcde in below test cases):
The prefix string comes before the longer string.
Prefix string will come after the longer string.
Make sure that you get correct output for both the cases, and you may trust that other things will fall in place.
Seems like cookies are disabled on this browser, please enable them to open this website
No Prefix Set
You are viewing a single comment's thread. Return to all comments →
Just remember that there will be two conditions to check. (Look out for abc and abcde in below test cases):
The prefix string comes before the longer string.
Prefix string will come after the longer string.
Make sure that you get correct output for both the cases, and you may trust that other things will fall in place.