Пример #1
0
        public void Test1()
        {
            var solution = new LeetCode.P33.Solution();
            var result   = solution.Search(new int[] { 4, 5, 6, 7, 0, 1, 2 }, 0);

            Assert.Equal(4, result);
        }
Пример #2
0
        public void Test4()
        {
            var solution = new LeetCode.P33.Solution();
            var result   = solution.Search(new int[] { 1, 3 }, 1);

            Assert.Equal(0, result);
        }