Giraffe Lover
Leetcode 刷題筆記 Leetcode 刷題筆記
整理 Leetcode 刷過的題做的筆記
[LeetCode] #300 Longest Increasing Subsequence [LeetCode] #300 Longest Increasing Subsequence
給定一個數列,取其中若干不連續從小到大排列的數字,求該數列最大可能長度
[LeetCode] #198 House Robber [LeetCode] #198 House Robber
給一個整數陣列,找最大可能的不相鄰數總合
[LeetCode] #105 Construct Binary Tree from Preorder and Inorder Traversal [LeetCode] #105 Construct Binary Tree from Preorder and Inorder Traversal
提供 Preorder 和 Inorder 順序,重建出整棵樹
[LeetCode] #1239 Maximum Length of a Concatenated String with Unique Characters [LeetCode] #1239 Maximum Length of a Concatenated String with Unique Characters
提供一些字串,用其組合出不重複字元的字串,找出最大的可能長度
[LeetCode] #148 Sort List [LeetCode] #148 Sort List
將一個 linked list 排序
[LeetCode] #138 Copy List with Random Pointer [LeetCode] #138 Copy List with Random Pointer
Deepcopy 一個有 random pointer 的 linked list
[LeetCode] #25 Reverse Nodes in k-Group [LeetCode] #25 Reverse Nodes in k-Group
給一個 linked list,以連續 k 個為一組,將每組都 revert,所最後出現不滿 k 個的組,該組維持不變
[LeetCode] #41 First Missing Positive [LeetCode] #41 First Missing Positive
找出不存在數列中的最小正整數
[HackerRank] Deque-STL (Sliding Window Maximum) [HackerRank] Deque-STL (Sliding Window Maximum)
給一個數列,不斷找出滑動的固定長度區間的最大值
[LeetCode] #79 Word Search [LeetCode] #79 Word Search
二維陣列中某字串是否存在
1 / 3