We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Strings
- Common Child
- Discussions
Common Child
Common Child
Sort by
recency
|
674 Discussions
|
Please Login in order to post a comment
Another word for this is "longest common subsequence" (or lcs). The basic algorithm is
Called from main with
Of course, you will need to use memoization to avoid an exponential run time.
`
Perl: