[leetcode][C++][Java] jump game
https://leetcode.com/problems/jump-game/ Jump Game - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com [leetcode][C++][Java] jump game 처음 보자마자 생각난건 dp.. greedy로 풀면 코드도 간결하고 java로도 1ms가 나온다. C++ // greedy class Solution { public: bool canJump(vector& nums) { int last = nums.size() - 1..
Problem Solving
2021. 10. 15. 22:41