Пример #1
0
        public void Test3(int[] a, int[] b, int[] expected)
        {
            var lcs    = new LongestCommonSubsequence();
            var result = lcs.LongestCommonSubsequence3(a, b);

            CollectionAssert.AreEqual(expected, result);
        }
Пример #2
0
        public void Test2(string word1, string word2, int expected)
        {
            var lcs    = new LongestCommonSubsequence();
            var result = lcs.MinDistance2(word1, word2);

            Assert.AreEqual(expected, result);
        }