iT邦幫忙

2025 iThome 鐵人賽

DAY 29
0

題目介紹:

  • 編號:66
  • 類型:Array,Math
  • 難度:easy
  • 題目連結:https://leetcode.com/problems/plus-one/description/
  • 描述:給定一個由 非負整數 所組成的「數字陣列」digits,表示一個整數。
    回傳這個整數 加一 之後的新陣列。1.每個元素代表這個整數的一位數 2.整數不包含前導零(除了數字 0 本身)。

解題成功截圖
https://ithelp.ithome.com.tw/upload/images/20251013/20178840eVgBgILi6l.jpg

notion筆記截圖
https://ithelp.ithome.com.tw/upload/images/20251013/20178840hEOJVszyth.jpg
https://ithelp.ithome.com.tw/upload/images/20251013/20178840O92QlIY9e9.jpg


上一篇
<DAY28> - Majority Element
下一篇
<DAY30> - 挑戰心得回顧
系列文
「用 LeetCode 挑戰 30 天,打造扎實的程式邏輯力」- 結合Notion記錄學習筆記30
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言