示例#1
0
        public void FindTheDistanceValue_3()
        {
            var solution = new _1385_FindTheDistanceValueBetweenTwoArrays();
            var result   = solution.FindTheDistanceValue(new int[] { 2, 1, 100, 3 }, new int[] { -5, -2, 10, -3, 7 }, 6);

            Assert.AreEqual(1, result);
        }
示例#2
0
        public void FindTheDistanceValue_1()
        {
            var solution = new _1385_FindTheDistanceValueBetweenTwoArrays();
            var result   = solution.FindTheDistanceValue(new int[] { 4, 5, 8 }, new int[] { 10, 9, 1, 8 }, 2);

            Assert.AreEqual(2, result);
        }
示例#3
0
        public void FindTheDistanceValue_2()
        {
            var solution = new _1385_FindTheDistanceValueBetweenTwoArrays();
            var result   = solution.FindTheDistanceValue(new int[] { 1, 4, 2, 3 }, new int[] { -4, -3, 6, 10, 20, 30 }, 3);

            Assert.AreEqual(2, result);
        }