Ejemplo n.º 1
0
        public void TestLCS2()
        {
            var actual = Q056LongestCommonSequence.LCS("acdabbc", "cddbacaba");
            var expect = "cdbc";

            Assert.AreEqual(expect, actual);
        }
Ejemplo n.º 2
0
        public void TestLCS1()
        {
            var actual = Q056LongestCommonSequence.LCS("BDCABA", "ABCBDAB");
            var expect = "BCBA";

            Assert.AreEqual(expect, actual);
        }