Consider two strings A and B. Take string A as your First name and Last name without space in-between (eg: TEJINDERTHIND) and string B as the name of your home town (eg: JALANDHARCITY). Now find the Longest Common Subsequence (LCS) common to strings A and B using Dynamic Programming
Comments
Leave a comment