예제 #1
0
        public void TestLongestIncreasingSubsequence()
        {
            List <int> sequence = new List <int>
            {
                12,
                34,
                1,
                5,
                40,
                80
            };

            var actual = longestIncreasingSubsequence.Search(sequence);

            Assert.Equal(4, actual);
        }