--- tags: AC LeetCode 刷題讀書會 - 2023 --- # 2023/10/08 (日) 每週 LeetCode 刷題 ## 刷題題號 - [55. Jump Game](https://leetcode.com/problems/climbing-stairs/) ## 解題思路 You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position. Return true if you can reach the last index, or false otherwise. <pre style='background-color:#ggg'> 你給定一個整數陣列叫做 nums。 你在最初位於陣列中第一個索引處,陣列中的每個元素代表您在該位置的最大跳躍長度。 如果可以到達最後一個索引,則傳回 true,否則傳回 false。 </pre> ## 回報格式 - 請 Fork 此 Replit 連結(https://replit.com/@AllenLi23/AC-LeetCode-Js-55-Jump-Game#index.js)後,進行程式碼解題,並於完成後更新到 Replit 中,再將連結貼至「解題分享區」來與大家交流做法。 解題分享區 --- 讀書會議流程: #簽到表: https://docs.google.com/spreadsheets/d/1gc16rrF-yZNs845z_nYrdgDIiSECOJok30dNLyQm69A/edit#gid=534323210 1. 題目說明。 2. 題目解析(BigO(n))。 4. 成員分享解題思路。 5. 問題與討論。 <!-- No.0 (請依序排序下去) name: name (回報範例) lighthouse: lighthouse Replit:https://replit.com/@AllenLi23/AC-LeetCode-Js-55-Jump-Game-Allen --> <!-- No.1 (請依序排序下去) name: 嶸 (回報範例) lighthouse: abc50113@yahoo.com.tw Replit:https://replit.com/@Robert83213/AC-LeetCode-Js-55-Jump-Game#index.js --> <!-- No.2 name: Kai lighthouse: pythonforeye@gmail.com Replit: https://replit.com/@Beginneraboutli/AC-LeetCode-Js-55-Jump-Game#index.js --> <!-- No.3 name: Jack Hung lighthouse: lhhungx@gmail.com Replit:https://replit.com/@LungHsuanHung/AC-LeetCode-Go-55-Jump-Game#solution/solution.go -->