技術文章
技術問答
iT 徵才
聊天室
2026 鐵人賽
登入/註冊
文章
問答
Tag
邦友
鐵人賽
搜尋
2025 iThome 鐵人賽
DAY
12
0
自我挑戰組
「用 LeetCode 挑戰 30 天,打造扎實的程式邏輯力」- 結合Notion記錄學習筆記
系列 第
12
篇
<DAY12> - Valid Parentheses
17th鐵人賽
ingrid107
2025-09-26 08:16:39
179 瀏覽
分享至
題目介紹:
編號:20
類型:String, Stack
難度:easy
題目連結:https://leetcode.com/problems/valid-parentheses/
描述:給定一個只包含 () [] {} 的字串,請判斷是否為有效的括號配對。
有效的條件如下:
括號必須「成對」出現。
開始順序要正確:先開後關。
不能有交錯或不成對的符號。
解題成功截圖:
notion筆記截圖:
留言
追蹤
檢舉
上一篇
<DA11> - Ransom Note
下一篇
<DAY13> - Implement Queue using Stacks
系列文
「用 LeetCode 挑戰 30 天,打造扎實的程式邏輯力」- 結合Notion記錄學習筆記
共
30
篇
目錄
RSS系列文
訂閱系列文
0
人訂閱
26
<DAY26> -Climbing Stairs
27
<DAY27> - House Robber
28
<DAY28> - Majority Element
29
<DAY29> - Plus One
30
<DAY30> - 挑戰心得回顧
完整目錄
熱門推薦
{{ item.subject }}
{{ item.channelVendor }}
|
{{ item.webinarstarted }}
|
{{ formatDate(item.duration) }}
直播中
立即報名
尚未有邦友留言
立即登入留言
iThome鐵人賽
參賽組數
902
組
團體組數
37
組
累計文章數
19837
篇
完賽人數
528
人
看影片追技術
看更多
{{ item.subject }}
{{ item.channelVendor }}
|
{{ formatDate(item.duration) }}
直播中
熱門tag
15th鐵人賽
16th鐵人賽
13th鐵人賽
14th鐵人賽
17th鐵人賽
12th鐵人賽
11th鐵人賽
鐵人賽
2019鐵人賽
javascript
2018鐵人賽
python
2017鐵人賽
windows
php
c#
linux
windows server
css
react
熱門問題
有人願意割愛Microsoft SQL Server Reporting Services報表服務 書嗎?
請益演算法市面推薦書籍
瀏覽器自動更新
詢問 PVE 伺服器一直斷線、卡頓...
熱門回答
請益演算法市面推薦書籍
有人願意割愛Microsoft SQL Server Reporting Services報表服務 書嗎?
瀏覽器自動更新
熱門文章
Claude code 新手篇 1 : Claude Code 從零開始 — 我用它把個人網站從企業官網風格改成雜誌風格
2026 CKA 考試經驗分享
黃仁勳說了哪些重點?NVIDIA GTC Taipei 2026 完整懶人包
公司要導入 Claude,哪個規格適合?Free 到 Enterprise 一次說清楚
Claude code 新手篇 2 :用量這件事 — 搞懂 Claude Code 怎麼收費,然後決定你要不要省
IT邦幫忙
×
標記使用者
輸入對方的帳號或暱稱
Loading
找不到結果。
標記
{{ result.label }}
{{ result.account }}