iT邦幫忙

鐵人檔案

2025 iThome 鐵人賽
回列表
自我挑戰組

LeetCode 每日任務 系列

這次鐵人賽我要挑戰「每日一題 LeetCode」!將會連續三十天每天解一題程式題,題目會從基礎的陣列、字串一路到進階的動態規劃、圖論都有,而每天我也會分享自己的解題過程,包括怎麼理解題目、想到什麼解法、以及最後的程式碼,期望能用比較容易懂的方式記錄下來,更是訓練自己每天動腦和培養習慣的一種方式,更加希望自己演算法思維也能更紮實!

參賽天數 23 天 | 共 23 篇文章 | 0 人訂閱 訂閱系列文 RSS系列文
DAY 1

LeetCode 每日任務

會選擇「每日一題 LeetCode」作為鐵人賽主題,主要是希望藉此培養每天穩定練習的習慣,並透過連續挑戰的方式累積演算法與解題的實力,因為平常只有在課程中才會接...

2025-09-15 ‧ 由 chihyu04 分享
DAY 2

LeetCode Day2

680. Valid Palindrome II 題目:Given a string s, return true if the s can be palind...

2025-09-16 ‧ 由 chihyu04 分享
DAY 3

LeetCode Day3

206. Reverse Linked List 題目:Given the head of a singly linked list, reverse the...

2025-09-17 ‧ 由 chihyu04 分享
DAY 4

LeetCode Day4

35. Search Insert Position 題目:Given a sorted array of distinct integers and a ta...

2025-09-18 ‧ 由 chihyu04 分享
DAY 5

LeetCode Day5

35. Search Insert Position 題目:給定 n 個版本 [1 ... n],其中某一個版本開始壞掉,之後所有版本都會是壞的。要找到 第一個...

2025-09-19 ‧ 由 chihyu04 分享
DAY 6

LeetCode Day6

7. Reverse Integer 題目:給定一個 32 位元有號整數 x,請你回傳它的數字「反轉後」的結果。 如果反轉後超出 32-bit 範圍([-2^...

2025-09-20 ‧ 由 chihyu04 分享
DAY 7

LeetCode Day7

144. Binary Tree Preorder TraversalPreorder Traversal 題目:給⼀棵⼆元樹,請「先序遍歷(Preorder...

2025-09-21 ‧ 由 chihyu04 分享
DAY 8

LeetCode Day8

144. Binary Tree Preorder TraversalPreorder Traversal 解法貳:迭代解 想法:by迭代解 使⽤ Stack...

2025-09-22 ‧ 由 chihyu04 分享
DAY 9

LeetCode Day9

701. Insert into a Binary Search Tree 題目:給你一棵二元搜尋樹和一個整數 val,請將 val 插入 BST 中,並回傳插...

2025-09-23 ‧ 由 chihyu04 分享
DAY 10

LeetCode Day10

226.Invert Binary Tree BFS(廣度優先搜尋) 題目:將給定的二元樹進行反轉,也就是將每個節點的左子樹和右子樹交換,然後返回新的根節點 範...

2025-09-24 ‧ 由 chihyu04 分享