@@ -0,0 +1,602 @@
+%0Apublic class LeetCode0055 %7B%0A%09public boolean canJump(int%5B%5D nums) %7B%0A%09%09if (nums == null %7C%7C nums.length == 0) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%0A%09%09int longestSkip = 0;%0A%0A%09%09for (int i = 0; i %3C nums.length - 1; i++) %7B%0A%09%09%09if (i %3E longestSkip) %7B%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%09%09%09if (i + nums%5Bi%5D %3E longestSkip) %7B%0A%09%09%09%09longestSkip = i + nums%5Bi%5D;%0A%09%09%09%7D%0A%09%09%09if (longestSkip %3E= nums.length - 1) %7B%0A%09%09%09%09return true;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return longestSkip %3E= nums.length - 1;%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09LeetCode0055 leetcode = new LeetCode0055();%0A%09%09System.out.println(leetcode.canJump(new int%5B%5D %7B 3, 0, 8, 2, 0, 0, 1 %7D));%0A%09%7D%0A%7D%0A

Add LeetCode0055.java