Example #1
0
        public void LongestCommonSubsequenceTest()
        {
            var input1 = "XMJYAUZ;MZJAWXU";
            var expected = "MJAU";

            LCS longestSequence = new LCS(input1);
            Assert.AreEqual(expected, longestSequence.LongestCommonSequence,"sequence no correct");
        }
Example #2
0
        static void Main(string[] args)
        {
            var input1 = "XMJYAUZ;MZJAWXU";
            //var expected = "MJAU";

            LCS longestSequence = new LCS(input1);

            Console.WriteLine("{0}", longestSequence.LongestCommonSequence);
        }