link to question : https://www.codechef.com/problems/STRMRG Link to my sol : https://ideone.com/5Eu0Mv Need test case where my code fails? Approach: For each element of str2,finding first element in str1 which is equal to element of str2 and inserting it there(say at position 'p') then for next element of str2 finding first element in str1 starting from p. Similary doing it for str1. Then finding min from two cases. asked 18 Jan '18, 21:51

Here you go 1 answered 18 Jan '18, 22:41
