Esempio n. 1
0
        public void SmallestRangeI_1()
        {
            var solution = new _0908_SmallestRangeI();
            var result   = solution.SmallestRangeI(new int[] { 1 }, 0);

            Assert.AreEqual(0, result);
        }
Esempio n. 2
0
        public void SmallestRangeI_2()
        {
            var solution = new _0908_SmallestRangeI();
            var result   = solution.SmallestRangeI(new int[] { 0, 10 }, 2);

            Assert.AreEqual(6, result);
        }