Driver Code
public static void Main ( String [ ] args ) { String X = " AGTGATG " ; String Y = " GTTAG " ; int m = X . Length ; int n = Y . Length ; Console . WriteLine ( " LCS ▁ length ▁ is ▁ " + LCS ( X , Y , m , n ) ) ; HashSet < String > s = findLCS ( X , Y , m , n ) ; foreach ( String str in s ) Console . WriteLine ( str ) ; } }