Esempio n. 1
0
        public void Test()
        {
            int result = new Q300().LengthOfLIS(new[] { 10, 9, 2, 5, 3, 7, 101, 18 });

            Assert.AreEqual(4, result);
        }
Esempio n. 2
0
        public void Test2()
        {
            int result = new Q300().LengthOfLIS(new[] { 7, 7, 7, 7, 7, 7 });

            Assert.AreEqual(1, result);
        }