LendingKart Interview Question

Round 1: Given 3 strings write the code to check if 3rd string is shuffle of the first two strings. Third string is said to be a shuffle of first and second if it can be formed by interleaving the characters of first and second String in a way that maintains the left to right ordering of the characters from each string. Example: katrina, kareena, katkareerinana. Here katkareerinana (“kat” + ”karee” + ”rina” + ”na” ) is shuffle of  katrina (“kat” + “rina”) and kareena (“karee” + “na”).

Dynamic Programming | Set 33 (Find if a string is interleaved of two other strings)

Write your Interview Experience or mail it to contribute@geeksforgeeks.org

My Personal Notes arrow_drop_up

Recommended Posts:

    If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

    Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

    Article Tags :

    Be the First to upvote.

    Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.