Пример #1
0
        public void ThreeSum_four_zero()
        {
            int[] nums = new[] { 0, 0, 0, 0 };

            var result = new List <List <int> >()
            {
                new List <int>()
                {
                    0, 0, 0
                },
            };

            Assert.AreEqual(result, ThreeSum.ThreeSumFunc(nums));
        }
Пример #2
0
        public void ThreeSum_Test()
        {
            int[] nums = new[] { -1, 0, 1, 2, -1, -4 };

            var result = new List <List <int> >()
            {
                new List <int>()
                {
                    -1, -1, 2
                },
                new List <int>()
                {
                    -1, 0, 1
                }
            };

            Assert.AreEqual(result, ThreeSum.ThreeSumFunc(nums));
        }