Substring Algorithm
Hi, I have been given a practice problem involving dynamic programming and i would appreciate some help
If you are given 2 strings, str1 and str2, find the longest possible common substring.
So, for example, if given the strings 'rebublican' and 'democrat' (sans quotes), the longest common substring would be 'eca'
republican
democrat
As you can see, the letters do not have to be adjacent but they must be in order
Can someone just give me a push in the right direction? Just ell me how to go about to solve this problem with dynamic programming (pseudocode, maybe)
Please do not just give me the answer (although you probably wont already)

