Here's an implementation of the dynamic programming approach to find the length of the longest common subsequence between two strings in C#:
main.cs706 chars28 lines
To find the longest common subsequence itself, we can use the same approach, but we need to store additional information to reconstruct the subsequence. Here's an implementation of that approach:
main.cs1682 chars63 lines
gistlibby LogSnag