diff --git "a/leetcode3/\355\231\251\354\235\200\354\247\200/403. Frog Jump.js" "b/leetcode3/\355\231\251\354\235\200\354\247\200/403. Frog Jump.js" new file mode 100644 index 00000000..f6243195 --- /dev/null +++ "b/leetcode3/\355\231\251\354\235\200\354\247\200/403. Frog Jump.js" @@ -0,0 +1,19 @@ +/** + * @param {number[]} stones + * @return {boolean} + */ +var canCross = function(stones) { + const dp =Array.from({length:stones.length},()=>Array(3).fill(false)); + dp[1][1]=true; + +// 길이는 전길이에 따라 달라짐 + for(let i=0;i