예제 #1
0
        public void Test4()
        {
            var solution = new LeetCode.P55.Solution();
            var result   = solution.CanJump(new int[] { 2, 0, 0 });

            Assert.True(result);
        }
예제 #2
0
        public void Test2()
        {
            var solution = new LeetCode.P55.Solution();
            var result   = solution.CanJump(new int[] { 3, 2, 1, 0, 4 });

            Assert.False(result);
        }