Showing posts with label Global Scholar. Show all posts
Showing posts with label Global Scholar. Show all posts

Friday, August 12, 2011

Given two strings find the combination of strings which can be interleaved

e.g. i/p: if "AB" and "CD" are two strings
o/p:
ABCD
ACBD
ACDB
ACBD
CABD
CDAB