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

No comments :