Leetcode
含有「Leetcode」共 34 篇內容
全部內容
發佈日期由新至舊
EMO先生的沙龍
2025/02/02
LeetCode刷題的Golang小技巧|探索Tree解法
此文章介紹LeetCode中Binary Tree的三種主要遍歷方法:深度優先搜尋(DFS)、廣度優先搜尋(BFS)和中序遍歷(Inorder Traversal),並搭配LeetCode範例題目說明其應用與解題技巧。文末總結各種方法的適用情境,幫助讀者提升解題能力。
#
Leetcode
#
golang
#
binarytree
2
留言
DigNo Ape 數遊原人
2024/10/23
Leetcode 解鎖 - User Activity for the Past Days(MS SQL SERVER)
自 2019-07-27 開始,往前推 30 天 ,計算每天的活躍用戶數。用戶在某天如果至少有一次活動記錄,則被認為在該天是活躍的,不用管答案的排序。
#
SQL
#
Leetcode
#
資料分析
喜歡
留言
Err500
2024/09/17
【LeetCode】884. Uncommon Words from Two Sentences
◆ 句子(sentence)的定義:小寫字母拼成的單字所組成的字串,每個單字間由單一個空白字元進行分隔。 ◆ uncommon的定義:在單一句子內只出現一次,並且沒有出現在另外一句中。 ◆ 給兩個句子s1跟s2,回傳所有符合uncommon定義的單字,可以為任意順序。
#
Java
#
Leetcode
1
留言
Youna's Devlog
2024/02/13
[Leetcode] 121. Best Time to Buy and Sell Stock
題目 : 121. Best Time to Buy and Sell Stock
#
Leetcode
3
3
小松鼠
2024/02/13
回覆
回覆
Youna
2024/02/18
發文者
1
回覆
1
回覆
Youna's Devlog
2024/01/11
[Leetcode] 100. Same Tree
題目 : 100. Same Tree
#
Leetcode
3
留言
Youna's Devlog
2024/01/11
[Leetcode] 83. Remove Duplicates from Sorted List
題目 : 83. Remove Duplicates from Sorted List
#
Leetcode
喜歡
留言
Youna's Devlog
2024/01/10
[Leetcode] 69. Sqrt(x)
題目 : 69. Sqrt(x)
#
Leetcode
喜歡
留言
Youna's Devlog
2024/01/10
[Leetcode] 35. Search Insert Position
題目 : 35. Search Insert Position
#
Leetcode
2
留言
Youna's Devlog
2024/01/10
[Leetcode] 28. Find the Index of the First Occurrence in ...
題目 : 28. Find the Index of the First Occurrence in a String
#
Leetcode
2
留言
Youna's Devlog
2024/01/10
[Leetcode] 66. Plus One
題目:66. Plus One
#
Leetcode
喜歡
留言