Tagged in

Arrays

數據共筆
數據共筆
Followers
5
Elsewhere
More, on Medium

LeetCode:(Python)(Array) Jump Game

題目連結: https://leetcode.com/problems/jump-game/description/?envType=study-plan-v2&envId=top-interview-150

題意說明

  • nums 內的數字,代表在該位置上能夠往下走的最大步伐數
  • 如果數字是3,代表可以走1,2,3的步伐,不一定要走3

LeetCode:(Python)(Array)Rotate Array

題目連結: https://leetcode.com/problems/rotate-array/description/?envType=study-plan-v2&envId=top-interview-150

題意說明:

  • 把 nums中最後 k個數字移到 nums的開頭

注意事項: