iT邦幫忙

2025 iThome 鐵人賽

DAY 9
0

題目介紹:

  • 編號:344
  • 類型:Array, Two Pointers, String
  • 難度:easy
  • 題目連結:https://leetcode.com/problems/reverse-string/description/
  • 描述:給定一個char[],反轉字串內容。不能建立額外陣列或回傳新字串,必須直接修改輸入陣列。

解題成功截圖:
https://ithelp.ithome.com.tw/upload/images/20250923/201788409j62g8VjSG.jpg

notion筆記截圖:
https://ithelp.ithome.com.tw/upload/images/20250923/201788403sCl4v6vug.jpg
https://ithelp.ithome.com.tw/upload/images/20250923/20178840UpvtZ6X9mV.jpg


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

尚未有邦友留言

立即登入留言