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

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

            Assert.AreEqual(expect, actual);
        }