예제 #1
0
        public void Example1()
        {
            var sol = new ContinuousSubarraySumSolution();

            var result = sol.CheckSubarraySum(new[] { 23, 2, 4, 6, 7 }, 6);

            Assert.IsTrue(result);
        }
예제 #2
0
        public void Example5()
        {
            var sol = new ContinuousSubarraySumSolution();

            var result = sol.CheckSubarraySum(new[] { 1, 2, 3 }, 4);

            Assert.IsFalse(result);
        }