Swift LeetCode 目錄 | Catalog(每週日更新......)

★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
➤微信公衆號:爲敢(WeiGanTechnologies)
➤博客園地址:山青詠芝(https://www.cnblogs.com/strengthen/
➤GitHub地址:https://github.com/strengthen/LeetCode
➤原文地址:http://www.javashuo.com/article/p-huxqysdb-ky.html
➤若是連接不是山青詠芝的博客園地址,則多是爬取做者的文章。
➤原文已修改更新!強烈建議點擊原文地址閱讀!支持做者!支持原創!
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★html

請點擊頁面左上角 -> Fork me on Githubgit

或直接訪問本項目Github地址:LeetCode Solution by Swift   github

說明:題目中含有$符號則爲付費題目。正則表達式

如:[Swift]LeetCode156.二叉樹的上下顛倒 $ Binary Tree Upside Downapi

請下拉滾動條查看最新 Weekly Contest!!!數組

Swift LeetCode 目錄 | Catalog
序        號 題名Title 難度     Difficulty
1  兩數之和 | Two Sum Easy
2 兩數相加 | Add Two Numbers  Medium
3  無重複字符的最長子串 | Longest Substring Without Repeating Characters Medium
4 兩個排序數組的中位數 | Median of Two Sorted Arrays  Hard
5 最長迴文子串 | Longest Palindromic Substring  Medium
6  Z字形變換 | ZigZag Conversion Medium
7 反轉整數 | Reverse Integer  Easy
8 字符串轉整數 (atoi) | String to Integer (atoi)  Medium
9   迴文數 | Palindrome Number Easy
10  正則表達式匹配 | Regular Expression Matching Hard
11  盛最多水的容器 | Container With Most Water Medium
12 整數轉羅馬數字 | Integer to Roman  Medium
13 羅馬數字轉整數 | Roman to Integer
Easy
14 最長公共前綴 | Longest Common Prefix  Easy
15  三數之和 | 3Sum Medium
16 最接近的三數之和 | 3Sum Closest  Medium
17  電話號碼的字母組合 | Letter Combinations of a Phone Number Medium
18  四數之和 | 4Sum Medium
19  刪除鏈表的倒數第N個節點 | Remove Nth Node From End of List Medium
20  有效的括號 | Valid Parentheses Easy
21 合併兩個有序鏈表 | Merge Two Sorted Lists Easy
22 括號生成 | Generate Parentheses
Medium 
23 合併K個排序鏈表 | Merge k Sorted Lists  Hard
24  兩兩交換鏈表中的節點 | Swap Nodes in Pairs Medium
25 k個一組翻轉鏈表 | Reverse Nodes in k-Group  Hard
26 刪除排序數組中的重複項 | Remove Duplicates from Sorted Array  Easy
27 移除元素 | Remove Element   Easy
28 實現strStr() | Implement strStr()   Easy
29 兩數相除 | Divide Two Integers  Medium
30  與全部單詞相關聯的字串 | Substring with Concatenation of All Words Hard
31  下一個排列 | Next Permutation Medium
32  最長有效括號 | Longest Valid Parentheses Hard
33 搜索旋轉排序數組 | Search in Rotated Sorted Array  Medium
34  在排序數組中查找元素的第一個和最後一個位置 | Find First and Last Position of Element in Sorted Array Medium
35 搜索插入位置 | Search Insert Position  Easy
36  有效的數獨 | Valid Sudoku Medium
37  解數獨 | Sudoku Solver Hard
38 報數 | Count and Say  Easy
39  組合總和 | Combination Sum Medium
40  組合總和 II | Combination Sum II Medium
41  缺失的第一個正數 | First Missing Positive Hard
42 接雨水 | Trapping Rain Water  Hard
43  字符串相乘 | Multiply Strings Medium
44 通配符匹配 | Wildcard Matching  Hard
45  跳躍遊戲 II | Jump Game II Hard
46 全排列 | Permutations  Medium
47  全排列 II | Permutations II Medium
48  旋轉圖像 | Rotate Image Medium
49  字母異位詞分組 | Group Anagrams Medium
50  Pow(x, n) | Pow(x, n) Medium
51  N皇后 | N-Queens Hard
52  N皇后 II | N-Queens II Hard
53 最大子序和 | Maximum Subarray  Easy
54 螺旋矩陣 | Spiral Matrix Medium
55 跳躍遊戲 | Jump Game  Medium
56  合併區間 | Merge Intervals Medium
57 插入區間 | Insert Interval  Hard
58 最後一個單詞的長度 | Length of Last Word  Easy
59  螺旋矩陣 II | Spiral Matrix II Medium
60  第k個排列 | Permutation Sequence Medium
61 旋轉鏈表 | Rotate List  Medium
62  不一樣路徑 | Unique Paths Medium
63  不一樣路徑 II | Unique Paths II Medium
64  最小路徑和 | Minimum Path Sum Medium
65 有效數字 | Valid Number  Hard
66  加一 | Plus One Easy
67  二進制求和 | Add Binary Easy
68  文本左右對齊 | Text Justification Hard
69 x 的平方根 | Sqrt(x)  Easy
70 爬樓梯 | Climbing Stairs  Easy
71  簡化路徑 | Simplify Path Medium
72  編輯距離 | Edit Distance Hard
73  矩陣置零 | Set Matrix Zeroes Medium
74  搜索二維矩陣 | Search a 2D Matrix Medium
75  顏色分類 | Sort Colors Medium
76  最小覆蓋子串 | Minimum Window Substring Hard
77 組合 | Combinations  Medium
78  子集 | Subsets Medium
79  單詞搜索 | Word Search Medium
80  刪除排序數組中的重複項 II | Remove Duplicates from Sorted Array II Medium
81  搜索旋轉排序數組 II | Search in Rotated Sorted Array II Medium
82  刪除排序鏈表中的重複元素 II | Remove Duplicates from Sorted List II Medium
83 刪除排序鏈表中的重複元素 | Remove Duplicates from Sorted List  Easy
84  柱狀圖中最大的矩形 | Largest Rectangle in Histogram Hard
85  最大矩形 | Maximal Rectangle Hard
86  分隔鏈表 | Partition List Medium
87  擾亂字符串 | Scramble String Hard
88 合併兩個有序數組 | Merge Sorted Array  Easy
89  格雷編碼 | Gray Code Medium
90  子集 II | Subsets II Medium
91  解碼方法 | Decode Ways Medium
92 反轉鏈表 II | Reverse Linked List II  Medium
93 復原IP地址 | Restore IP Addresses  Medium
94 二叉樹的中序遍歷 | Binary Tree Inorder Traversal  Medium
95  不一樣的二叉搜索樹 II | Unique Binary Search Trees II Medium
96  不一樣的二叉搜索樹 | Unique Binary Search Trees Medium
97 交錯字符串 | Interleaving String  Medium
98  驗證二叉搜索樹 | Validate Binary Search Tree Medium
99  恢復二叉搜索樹 | Recover Binary Search Tree Medium
100 相同的樹 | Same Tree  Hard
101 對稱二叉樹 | Symmetric Tree  Easy
102 二叉樹的層次遍歷 | Binary Tree Level Order Traversal Medium
103  二叉樹的鋸齒形層次遍歷 | Binary Tree Zigzag Level Order Traversal Medium
104  二叉樹的最大深度 | Maximum Depth of Binary Tree Easy
105 從前序與中序遍歷序列構造二叉樹 | Construct Binary Tree from Preorder and Inorder Traversal  Medium
106  從中序與後序遍歷序列構造二叉樹 | Construct Binary Tree from Inorder and Postorder Traversal Medium
107  二叉樹的層次遍歷 II | Binary Tree Level Order Traversal II Easy
108  將有序數組轉換爲二叉搜索樹 | Convert Sorted Array to Binary Search Tree Easy
109  有序鏈表轉換二叉搜索樹 | Convert Sorted List to Binary Search Tree Medium
110  平衡二叉樹 | Balanced Binary Tree Easy
111  二叉樹的最小深度 | Minimum Depth of Binary Tree Easy
112  路徑總和 | Path Sum Easy
113  路徑總和 II | Path Sum II Medium
114  二叉樹展開爲鏈表 | Flatten Binary Tree to Linked List Medium
115 不一樣的子序列 | Distinct Subsequences  Hard
116 填充同一層的兄弟節點 | Populating Next Right Pointers in Each Node  Medium
117 填充同一層的兄弟節點 II | Populating Next Right Pointers in Each Node II  Medium
118  楊輝三角 | Pascal's Triangle Easy
119  楊輝三角 II | Pascal's Triangle II Easy
120 三角形最小路徑和 | Triangle  Medium
121 買賣股票的最佳時機 I | Best Time to Buy and Sell Stock  Easy
122  買賣股票的最佳時機 II | Best Time to Buy and Sell Stock II Easy
123 買賣股票的最佳時機 III | Best Time to Buy and Sell Stock III  Hard
124  二叉樹中的最大路徑和 | Binary Tree Maximum Path Sum Hard
125 驗證迴文串 | Valid Palindrome  Easy
126 單詞接龍 II | Word Ladder II  Hard
127  單詞接龍 | Word Ladder Medium
128  最長連續序列 | Longest Consecutive Sequence Hard
129  求根到葉子節點數字之和 | Sum Root to Leaf Numbers Medium
130 被圍繞的區域 | Surrounded Regions  Medium
131  分割回文串 | Palindrome Partitioning Medium
132  分割回文串 II | Palindrome Partitioning II Hard
133  克隆圖 | Clone Graph Medium
134  加油站 | Gas Station Medium
135  分發糖果 | Candy Hard
136 只出現一次的數字 | Single Number  Easy
137 只出現一次的數字 II | Single Number II  Medium
138  複製帶隨機指針的鏈表 | Copy List with Random Pointer Medium
139  單詞拆分 | Word Break Medium
140  單詞拆分 II | Word Break II Hard
141 環形鏈表 | Linked List Cycle  Easy
142  環形鏈表 II | Linked List Cycle II Medium
143  重排鏈表 | Reorder List Medium
144  二叉樹的前序遍歷 | Binary Tree Preorder Traversal Medium
145  二叉樹的後序遍歷 | Binary Tree Postorder Traversal Hard
146 LRU緩存機制 | LRU Cache  Hard
147  對鏈表進行插入排序 | Insertion Sort List Medium
148  排序鏈表 | Sort List Medium
149  直線上最多的點數 | Max Points on a Line Hard
150 逆波蘭表達式求值 | Evaluate Reverse Polish Notation  Medium
151  翻轉字符串裏的單詞 | Reverse Words in a String Medium
152  乘積最大子序列 | Maximum Product Subarray Medium
153 尋找旋轉排序數組中的最小值 | Find Minimum in Rotated Sorted Array  Medium
154 尋找旋轉排序數組中的最小值 II | Find Minimum in Rotated Sorted Array II  Hard
155  最小棧 | Min Stack  Easy
156 二叉樹的上下顛倒 $ Binary Tree Upside Down  Medium
157  用Read4來讀取N個字符 $ Read N Characters Given Read4 Easy
158 用Read4來讀取N個字符II $ Read N Characters Given Read4 II  Hard
159 具備最多兩個不一樣字符的最長子串 $ Longest Substring with At Most Two Distinct Characters  Hard
160 相交鏈表 | Intersection of Two Linked Lists  Easy
161  一次編輯距離 $ One Edit Distance Medium
162 尋找峯值 | Find Peak Element  Medium
163 缺失區間 $ Missing Ranges  Medium
164  最大間距 | Maximum Gap Hard
165 比較版本號 | Compare Version Numbers  Medium
166  分數到小數 | Fraction to Recurring Decimal Medium
167 兩數之和 II - 輸入有序數組 | Two Sum II - Input array is sorted  Easy
168  Excel表列名稱 | Excel Sheet Column Title Easy
169  求衆數 | Majority Element Easy
170  兩數之和之三 - 數據結構設計 $ Two Sum III - Data structure design Easy
171 Excel表列序號 | Excel Sheet Column Number  Easy
172  階乘後的零 | Factorial Trailing Zeroes Easy
173 二叉搜索樹迭代器 | Binary Search Tree Iterator Medium
174 地下城遊戲 | Dungeon Game Hard
175  組合兩個表 | Combine Two Tables Easy
176  第二高的薪水 | Second Highest Salary Easy
177 第N高的薪水 | Nth Highest Salary  Medium
178  分數排名 | Rank Scores Medium
179 最大數 | Largest Number  Medium
180 連續出現的數字 | Consecutive Numbers  Medium
181  超過經理收入的員工 | Employees Earning More Than Their Managers Easy
182  查找重複的電子郵箱 | Duplicate Emails Easy
183 從不訂購的客戶 | Customers Who Never Order  Easy
184 部門工資最高的員工 | Department Highest Salary  Medium
185 部門工資前三高的員工 | Department Top Three Salaries  Hard
186 翻轉字符串中的單詞 II $ Reverse Words in a String II  Medium
187  重複的DNA序列 | Repeated DNA Sequences Medium
188 買賣股票的最佳時機 IV | Best Time to Buy and Sell Stock IV  Hard
189  旋轉數組 | Rotate Array Easy
190  顛倒二進制位 | Reverse Bits Easy
191  位1的個數 | Number of 1 Bits Easy
192 統計詞頻 | Word Frequency  Medium
193  有效電話號碼 | Valid Phone Numbers Easy
194  轉置文件 | Transpose File Medium
195  第十行 | Tenth Line Easy
196  刪除重複的電子郵箱 | Delete Duplicate Emails Easy
197  上升的溫度 | Rising Temperature Easy
198  打家劫舍 | House Robber Easy
199 二叉樹的右視圖 | Binary Tree Right Side View  Medium
200  島嶼的個數 | Number of Islands Medium
201 數字範圍按位與 | Bitwise AND of Numbers Range Medium
202 快樂數 | Happy Number Easy
203  移除鏈表元素 | Remove Linked List Elements
Easy
204 計數質數 | Count Primes
Easy
205 同構字符串 | Isomorphic Strings
Easy
206 反轉鏈表 | Reverse Linked List Easy
207 課程表 | Course Schedule Medium
208 實現 Trie (前綴樹) | Implement Trie (Prefix Tree) Medium
209 長度最小的子數組 | Minimum Size Subarray Sum Medium
210 課程表 II | Course Schedule II Medium
211  添加與搜索單詞 - 數據結構設計 | Add and Search Word - Data structure design Medium
212 單詞搜索 II | Word Search II Hard
213 打家劫舍 II | House Robber II Medium
214 最短迴文串 | Shortest Palindrome Hard
215 數組中的第K個最大元素 | Kth Largest Element in an Array Medium
216 組合總和 III | Combination Sum III Medium
217 存在重複元素 | Contains Duplicate Easy
218 天際線問題 | The Skyline Problem Hard
219 存在重複元素 II | Contains Duplicate II Easy
220 存在重複元素 III | Contains Duplicate III Medium
221 最大正方形 | Maximal Square Medium
222 徹底二叉樹的節點個數 | Count Complete Tree Nodes Medium
223 矩形面積 | Rectangle Area Medium
224 基本計算器 | Basic Calculator Hard
225 用隊列實現棧 | Implement Stack using Queues Easy
226 翻轉二叉樹 | Invert Binary Tree Easy
227 基本計算器 II | Basic Calculator II Medium
228 彙總區間 | Summary Ranges Medium
229 求衆數 II | Majority Element II Medium
230 二叉搜索樹中第K小的元素 | Kth Smallest Element in a BST Medium
231 2的冪 | Power of Two Easy
232 用棧實現隊列 | Implement Queue using Stacks Easy
233 數字1的個數 | Number of Digit One Hard
234 迴文鏈表 | Palindrome Linked List Easy
235 二叉搜索樹的最近公共祖先 | Lowest Common Ancestor of a Binary Search Tree Easy
236 二叉樹的最近公共祖先 | Lowest Common Ancestor of a Binary Tree Medium
237 刪除鏈表中的節點 | Delete Node in a Linked List Easy
238 除自身之外數組的乘積 | Product of Array Except Self Medium
239 滑動窗口最大值 | Sliding Window Maximum Hard
240 搜索二維矩陣 II | Search a 2D Matrix II Medium
241 爲運算表達式設計優先級 | Different Ways to Add Parentheses Medium
242 有效的字母異位詞 | Valid Anagram Easy
243 最短單詞距離 $ Shortest Word Distance Easy
244 最短單詞距離 II $ Shortest Word Distance II Medium
245 最短單詞距離 III $ Shortest Word Distance III Medium
246 對稱數 $ Strobogrammatic Number Easy
247 對稱數 II $ Strobogrammatic Number II
Medium
248 對稱數 III $ Strobogrammatic Number III
Hard
249 羣組偏移字符串 $ Group Shifted Strings Medium
250 計數相同值子樹的個數 $ Count Univalue Subtrees Medium
251 展平二維向量 $ Flatten 2D Vector
Medium
252 會議室 $ Meeting Rooms Easy
253 會議室 II $ Meeting Rooms II
Medium
254 因子組合 $ Factor Combinations
Medium
255 驗證二叉搜索樹的先序序列 $ Verify Preorder Sequence in Binary Search Tree
Medium
256 粉刷房子 $ Paint House
Easy
257 二叉樹的全部路徑 | Binary Tree Paths Easy
258 各位相加 | Add Digits
Easy
259 三數之和較小值 $ 3Sum Smaller
Medium
260 只出現一次的數字 III | Single Number III Medium
261 圖驗證樹 $ Graph Valid Tree
Medium
262 行程和用戶 | Trips and Users
Hard
263 醜數 | Ugly Number Easy
264 醜數 II | Ugly Number II
Medium
265 粉刷房子 II $ Paint House II
Hard
266 迴文全排列 $ Palindrome Permutation
Easy
267 迴文全排列 II $ Palindrome Permutation II Medium
268 缺失數字 | Missing Number Easy
269 外星人詞典 $ Alien Dictionary Hard
270 最近的二分搜索樹的值 $ Closest Binary Search Tree Value
Easy
271 加碼解碼字符串 $ Encode and Decode Strings
Medium
272 最近的二分搜索樹的值 II $ Closest Binary Search Tree Value II Hard
273 整數轉換英文表示 | Integer to English Words Hard
274 H指數 | H-Index Medium
275 H指數 II | H-Index II
Medium
276 粉刷柵欄 $ Paint Fence
Easy
277 尋找名人 $ Find the Celebrity
Medium
278 第一個錯誤的版本 | First Bad Version Easy
279 徹底平方數 | Perfect Squares
Medium
280 擺動排序 $ Wiggle Sort
Medium
281 之字形迭代器 $ Zigzag Iterator
Medium
282 給表達式添加運算符 | Expression Add Operators
Hard
283 移動零 | Move Zeroes
Easy
284 頂端迭代器 | Peeking Iterator
Medium
285 二叉搜索樹中的中序後繼節點 $ Inorder Successor in BST
Medium
286 牆和門 $ Walls and Gates Medium
287 尋找重複數 | Find the Duplicate Number
Medium
288 惟一單詞縮寫 $ Unique Word Abbreviation
Medium
289 生命遊戲 | Game of Life
Medium
290 單詞模式 | Word Pattern  Easy
291 單詞模式 II $ Word Pattern II Hard
292 Nim遊戲 | Nim Game
Easy
293 翻轉游戲 $ Flip Game Easy
294 翻轉游戲之 II $ Flip Game II
Medium
295 數據流的中位數 | Find Median from Data Stream
Hard
296 最佳開會地點 $ Best Meeting Point Hard
297 二叉樹的序列化與反序列化 | Serialize and Deserialize Binary Tree
Hard
298 二叉樹最長連續序列 $ Binary Tree Longest Consecutive Sequence
Medium
299 猜數字遊戲 | Bulls and Cows Medium
300 最長上升子序列 | Longest Increasing Subsequence Medium
301 刪除無效的括號 | Remove Invalid Parentheses Hard
302 包含黑色像素的最小矩形 $ Smallest Rectangle Enclosing Black Pixels
Hard
303 區域和檢索 - 數組不可變 | Range Sum Query - Immutable Easy
304 二維區域和檢索 - 矩陣不可變 | Range Sum Query 2D - Immutable Medium
305 島嶼的個數 II $ Number of Islands II Hard
306 累加數 | Additive Number
Medium
307 區域和檢索 - 數組可修改 | Range Sum Query - Mutable
Medium
308 二維區域和檢索 - 可變 $ Range Sum Query 2D - Mutable
Hard
309 最佳買賣股票時機含冷凍期 | Best Time to Buy and Sell Stock with Cooldown Medium
310 最小高度樹 | Minimum Height Trees Medium
311 稀疏矩陣相乘 $ Sparse Matrix Multiplication Medium
312 戳氣球 | Burst Balloons
Hard
313 超級醜數 | Super Ugly Number
Medium
314 二叉樹的豎直遍歷 $ Binary Tree Vertical Order Traversal Medium
315 計算右側小於當前元素的個數 | Count of Smaller Numbers After Self
Hard
316 去除重複字母 | Remove Duplicate Letters Hard
317 建築物的最短距離 $ Shortest Distance from All Buildings
Hard
318 最大單詞長度乘積 | Maximum Product of Word Lengths Medium
319 燈泡開關 | Bulb Switcher Medium
320 通用簡寫 $ Generalized Abbreviation Medium
321 拼接最大數 | Create Maximum Number Hard
322 零錢兌換 | Coin Change
Medium
323 無向圖中的連通區域的個數 $ Number of Connected Components in an Undirected Graph
Medium
324 擺動排序 II | Wiggle Sort II Medium
325 最大子數組之和爲k $ Maximum Size Subarray Sum Equals k Medium
326 3的冪 | Power of Three Easy
327 區間和的個數 | Count of Range Sum Hard
328 奇偶鏈表 | Odd Even Linked List
Medium
329 矩陣中的最長遞增路徑 | Longest Increasing Path in a Matrix
Hard
330 按要求補齊數組 | Patching Array
Hard
331 驗證二叉樹的前序序列化 | Verify Preorder Serialization of a Binary Tree Medium
332 從新安排行程 | Reconstruct Itinerary Medium
333 最大的二分搜索子樹 $ Largest BST Subtree Medium
334 遞增的三元子序列 | Increasing Triplet Subsequence Medium
335 路徑交叉 | Self Crossing Hard
336 迴文對 | Palindrome Pairs Hard
337 打家劫舍 III | House Robber III Medium
338 比特位計數 | Counting Bits Medium
339 嵌套鏈表權重和 $ Nested List Weight Sum
Easy
340 最多有K個不一樣字符的最長子串 $ Longest Substring with At Most K Distinct Characters
Hard
341 壓平嵌套鏈表迭代器 | Flatten Nested List Iterator
Medium
342 4的冪 | Power of Four Easy
343 整數拆分 | Integer Break Medium
344 反轉字符串 | Reverse String
Easy
345 反轉字符串中的元音字母 | Reverse Vowels of a String Easy
346 從數據流中移動平均值 $ Moving Average from Data Stream Easy
347 前K個高頻元素 | Top K Frequent Elements
Medium
348 設計井字棋遊戲 $ Design Tic-Tac-Toe
Medium
349 兩個數組的交集 | Intersection of Two Arrays Easy
350 兩個數組的交集 II | Intersection of Two Arrays II
Easy
351 安卓解鎖模式 $ Android Unlock Patterns Medium
352 將數據流變爲多個不相交間隔 | Data Stream as Disjoint Intervals Hard
353   Medium
354 俄羅斯套娃信封問題 | Russian Doll Envelopes Hard
355   Medium
356   Medium
357 計算各個位數不一樣的數字個數 | Count Numbers with Unique Digits Medium
358   Hard
359   Easy
360   Medium
361   Medium
362   Medium
363 矩形區域不超過 K 的最大數值和 | Max Sum of Rectangle No Larger Than K Hard
364   Medium
365 水壺問題 | Water and Jug Problem Medium
366   Medium
367 有效的徹底平方數 | Valid Perfect Square Easy
368 最大整除子集 | Largest Divisible Subset
Medium
369   Medium
370   Medium
371 兩整數之和 | Sum of Two Integers  Easy
372 超級次方 | Super Pow
Medium
373 查找和最小的K對數字 | Find K Pairs with Smallest Sums
Medium
374 猜數字大小 | Guess Number Higher or Lower Easy
375 猜數字大小 II | Guess Number Higher or Lower II Medium
376 擺動序列 | Wiggle Subsequence Medium
377 組合總和 Ⅳ | Combination Sum IV Medium
378 有序矩陣中第K小的元素 | Kth Smallest Element in a Sorted Matrix
Medium
379   Medium
380 常數時間插入、刪除和獲取隨機元素 | Insert Delete GetRandom O(1)
Medium
381 O(1) 時間插入、刪除和獲取隨機元素 - 容許重複 | Insert Delete GetRandom O(1) - Duplicates allowed Hard
382 鏈表隨機節點 | Linked List Random Node
Medium
383 贖金信 | Ransom Note Easy
384 打亂數組 | Shuffle an Array Medium
385 迷你語法分析器 | Mini Parser Medium
386 字典序排數 | Lexicographical Numbers Medium
387 字符串中的第一個惟一字符 | First Unique Character in a String Easy
388  文件的最長絕對路徑 | Longest Absolute File Path Medium
389 找不一樣 | Find the Difference  Easy
390 消除遊戲 | Elimination Game Medium
391 完美矩形 | Perfect Rectangle Hard
392 判斷子序列 | Is Subsequence Medium
393 UTF-8 編碼驗證 | UTF-8 Validation Medium
394 字符串解碼 | Decode String Medium
395 至少有K個重複字符的最長子串 | Longest Substring with At Least K Repeating Characters Medium
396 旋轉函數 | Rotate Function Medium
397 整數替換 | Integer Replacement Medium
398 隨機數索引 | Random Pick Index Medium
399 除法求值 | Evaluate Division Medium
400 第N個數字 | Nth Digit  Easy
401 二進制手錶 | Binary Watch Easy
402 移掉K位數字 | Remove K Digits Medium
403 青蛙過河 | Frog Jump Hard
404 左葉子之和 | Sum of Left Leaves Easy
405 數字轉換爲十六進制數 | Convert a Number to Hexadecimal Easy
406 根據身高重建隊列 | Queue Reconstruction by Height Medium
407 接雨水 II | Trapping Rain Water II Hard
408   Easy
409 最長迴文串 | Longest Palindrome Easy
410 分割數組的最大值 | Split Array Largest Sum Hard
411   Hard
412  Fizz Buzz Easy
413 等差數列劃分 | Arithmetic Slices Medium
414 第三大的數 | Third Maximum Number Easy
415 字符串相加 | Add Strings Easy
416 分割等和子集 | Partition Equal Subset Sum Medium
417 太平洋大西洋水流問題 | Pacific Atlantic Water Flow Medium
418   Medium
419 甲板上的戰艦 | Battleships in a Board Medium
420 強密碼檢驗器 | Strong Password Checker Hard
421 數組中兩個數的最大異或值 | Maximum XOR of Two Numbers in an Array Medium
422   Easy
423 從英文中重建數字 | Reconstruct Original Digits from English Medium
424 替換後的最長重複字符 | Longest Repeating Character Replacement Medium
425   Hard
426   Medium
427   Easy
428   Hard
429   Easy
430   Medium
431   Hard
432 全 O(1) 的數據結構 | All O`one Data Structure Hard
433 最小基因變化 | Minimum Genetic Mutation Medium
434 字符串中的單詞數 | Number of Segments in a String Easy
435 無重疊區間 | Non-overlapping Intervals Medium
436 尋找右區間 | Find Right Interval Medium
437 路徑總和 III | Path Sum III Easy
438 找到字符串中全部字母異位詞 | Find All Anagrams in a String Easy
439   Medium
440 字典序的第K小數字 | K-th Smallest in Lexicographical Order Hard
441 排列硬幣 | Arranging Coins Easy
442 數組中重複的數據 | Find All Duplicates in an Array Medium
443 壓縮字符串 | String Compression Easy
444   Medium
445 兩數相加 II | Add Two Numbers II Medium
446 等差數列劃分 II - 子序列 | Arithmetic Slices II - Subsequence Hard
447 迴旋鏢的數量 | Number of Boomerangs Easy
448 找到全部數組中消失的數字 | Find All Numbers Disappeared in an Array Easy
449   Medium
450 刪除二叉搜索樹中的節點 | Delete Node in a BST Medium
451 根據字符出現頻率排序 | Sort Characters By Frequency Medium
452 用最少數量的箭引爆氣球 | Minimum Number of Arrows to Burst Balloons Medium
453 最小移動次數使數組元素相等 | Minimum Moves to Equal Array Elements Easy
454 四數相加 II | 4Sum II Medium
455 分發餅乾 | Assign Cookies Easy
456 132模式 | 132 Pattern
Medium
457 環形數組循環 | Circular Array Loop Medium
458 可憐的小豬 | Poor Pigs Hard
459 重複的子字符串 | Repeated Substring Pattern Easy
460 LFU緩存 | LFU Cache
Hard
461 漢明距離 | Hamming Distance Easy
462 最少移動次數使數組元素相等 II | Minimum Moves to Equal Array Elements II Medium
463 島嶼的周長 | Island Perimeter Easy
464 我能贏嗎 | Can I Win Medium
465   Hard
466 統計重複個數 | Count The Repetitions Hard
467 環繞字符串中惟一的子字符串 | Unique Substrings in Wraparound String Medium
468 驗證IP地址 | Validate IP Address Medium
469   Medium
470 用 Rand7() 實現 Rand10() | Implement Rand10() Using Rand7() Medium
471   Hard
472 鏈接詞 | Concatenated Words Hard
473 火柴拼正方形 | Matchsticks to Square Medium
474 一和零 | Ones and Zeroes Medium
475 供暖器 | Heaters Easy
476 數字的補數 | Number Complement Easy
477 漢明距離總和 | Total Hamming Distance Medium
478 在圓內隨機生成點 | Generate Random Point in a Circle Medium
479 最大回文數乘積 | Largest Palindrome Product Hard
480 滑動窗口中位數 | Sliding Window Median
Hard
481 神奇字符串 | Magical String Medium
482 密鑰格式化 | License Key Formatting Easy
483 最小好進制 | Smallest Good Base Hard
484   Medium
485 最大連續1的個數 | Max Consecutive Ones Easy
486 預測贏家 | Predict the Winner Medium
487   Medium
488 祖瑪遊戲 | Zuma Game Hard
489   Hard
490   Medium
491 遞增子序列 | Increasing Subsequences Medium
492 構造矩形 | Construct the Rectangle Easy
493 翻轉對 | Reverse Pairs Hard
494 目標和 | Target Sum Medium
495 提莫攻擊 | Teemo Attacking Medium
496 下一個更大元素 I | Next Greater Element I Easy
497 非重疊矩形中的隨機點 | Random Point in Non-overlapping Rectangles Medium
498 對角線遍歷 | Diagonal Traverse Medium
499   Hard
500 鍵盤行 | Keyboard Row Easy
501 二叉搜索樹中的衆數 | Find Mode in Binary Search Tree Easy
502 IPO(首次公開募股) | Initial Public Offerings Hard
503 下一個更大元素 II | Next Greater Element II Medium
504 七進制數 | Base 7 Easy
505   Medium
506 相對名次 | Relative Ranks Easy
507 完美數 | Perfect Number Easy
508 出現次數最多的子樹元素和 | Most Frequent Subtree Sum Medium
509 斐波那契數 | Fibonacci Number Easy
510   Medium
511   Medium
512   Medium
513 找樹左下角的值 | Find Bottom Left Tree Value Medium
514 自由之路 | Freedom Trail Hard
515 在每一個樹行中找最大值 | Find Largest Value in Each Tree Row Medium
516 最長迴文子序列 | Longest Palindromic  Medium
517 超級洗衣機 | Super Washing Machines Hard
518 零錢兌換 II | Coin Change 2 Medium
519 隨機翻轉矩陣 | Random Flip Matrix Medium
520 檢測大寫字母 | Detect Capital Easy
521 最長特殊序列 Ⅰ | Longest Uncommon Subsequence I Easy
522 最長特殊序列 II | Longest Uncommon Subsequence II Medium
523 連續的子數組和 | Continuous Subarray Sum Medium
524 經過刪除字母匹配到字典裏最長單詞 | Longest Word in Dictionary through Deleting Medium
525 連續數組 | Contiguous Array Medium
526 優美的排列 | Beautiful Arrangement
Medium
527   Hard
528 按權重隨機選擇 | Random Pick with Weight Medium
529 掃雷遊戲 | Minesweeper Medium
530 二叉搜索樹的最小絕對差 | Minimum Absolute Difference in BST Easy
531   Medium
532 數組中的K-diff數對 | K-diff Pairs in an Array Easy
533   Medium
534   Medium
535   Medium
536   Medium
537 複數乘法 | Complex Number Multiplication
Medium
538 把二叉搜索樹轉換爲累加樹 | Convert BST to Greater Tree Easy
539 最小時間差 | Minimum Time Difference Medium
540 有序數組中的單一元素 | Single Element in a Sorted Array
Medium
541 反轉字符串 II | Reverse String II Easy
542 01 矩陣 | 01 Matrix Medium
543 二叉樹的直徑 | Diameter of Binary Tree Easy
544   Medium
545   Medium
546 移除盒子 | Remove Boxes
Hard
547 朋友圈 | Friend Circles
Medium
548   Medium
549   Medium
550   Medium
551 學生出勤紀錄 I | Student Attendance Record I Easy
552 學生出勤記錄 II | Student Attendance Record II Hard
553 最優除法 | Optimal Division Medium
554 磚牆 | Brick Wall Medium
555   Medium
556 下一個更大元素 III | Next Greater Element III Medium
557 反轉字符串中的單詞 III | Reverse Words in a String III Easy
558   Easy
559   Easy
560 和爲K的子數組 | Subarray Sum Equals K Medium
561 數組拆分 I | Array Partition I Easy
562   Medium
563 二叉樹的坡度 | Binary Tree Tilt Easy
564 尋找最近的迴文數 | Find the Closest Palindrome Hard
565 數組嵌套 | Array Nesting
Medium
566 重塑矩陣 | Reshape the Matrix Easy
567 字符串的排列 | Permutation in String
Medium
568   Hard
569   Hard
570   Medium
571   Hard
572 另外一個樹的子樹 | Subtree of Another Tree Easy
573   Medium
574   Medium
575 分糖果 | Distribute Candies Easy
576 出界的路徑數 | Out of Boundary Paths Medium
577 員工獎金 | Employee Bonus Easy
578   Medium
579   Hard
580   Medium
581 最短無序連續子數組 | Shortest Unsorted Continuous Subarray  Easy
582   Medium
583 兩個字符串的刪除操做 | Delete Operation for Two Strings Medium
584   Easy
585   Medium
586   Easy
587 安裝柵欄 | Erect the Fence Hard
588   Hard
589   Easy
590   Easy
591 標籤驗證器 | Tag Validator
Hard
592 分數加減運算 | Fraction Addition and Subtraction
Medium
593 有效的正方形 | Valid Square
Medium
594 最長和諧子序列 | Longest Harmonious Subsequence Easy
595 大的國家 | Big Countries
Easy
596 超過5名學生的課 | Classes More Than 5 Students
Easy
597   Easy
598 範圍求和 II | Range Addition II
Easy
599 兩個列表的最小索引總和 | Minimum Index Sum of Two Lists Easy
600 不含連續1的非負整數 | Non-negative Integers without Consecutive Ones Hard
601 體育館的人流量 | Human Traffic of Stadium Hard
602   Medium
603   Easy
604   Easy
605 種花問題 | Can Place Flowers Easy
606 根據二叉樹建立字符串 | Construct String from Binary Tree
Easy
607   Easy
608   Medium
609 在系統中查找重複文件 | Find Duplicate File in System
Medium
610   Easy
611 有效三角形的個數 | Valid Triangle Number Medium
612   Medium
613   Easy
614   Medium
615   Hard
616   Medium
617 合併二叉樹 | Merge Two Binary Trees
Easy
618   Hard
619   Easy
620 有趣的電影 | Not Boring Movies
Easy
621 任務調度器 | Task Scheduler Medium
622 設計循環隊列 | Design Circular Queue
Medium
623 在二叉樹中增長一行 | Add One Row to Tree
Medium
624   Easy
625   Medium
626 換座位 | Exchange Seats
Medium
627 交換工資 | Swap Salary
Easy
628 三個數的最大乘積 | Maximum Product of Three Numbers
Easy
629 K個逆序對數組 | K Inverse Pairs Array
Hard
630 課程表 III | Course Schedule III
Hard
631   Hard
632 最小區間 | Smallest Range
Hard
633 平方數之和 | Sum of Square Numbers
Easy
634   Medium
635   Medium
636 函數的獨佔時間 | Exclusive Time of Functions
Medium
637 二叉樹的層平均值 | Average of Levels in Binary Tree Easy
638 大禮包 | Shopping Offers Medium
639 解碼方法 2 | Decode Ways II Hard
640 求解方程 | Solve the Equation Medium
641 設計循環雙端隊列 | Design Circular Deque
Medium
642   Hard
643 子數組最大平均數 I | Maximum Average Subarray I Easy
644   Hard
645 錯誤的集合 | Set Mismatch
Easy
646 最長數對鏈 | Maximum Length of Pair Chain
Medium
647 迴文子串 | Palindromic Substrings
Medium
648 單詞替換 | Replace Words
Medium
649 Dota2 參議院 | Dota2 Senate
Medium
650 只有兩個鍵的鍵盤 | 2 Keys Keyboard
Medium
651   Medium
652 尋找重複的子樹 | Find Duplicate Subtrees Medium
653 兩數之和 IV - 輸入 BST | Two Sum IV - Input is a BST Easy
654 最大二叉樹 | Maximum Binary Tree Medium
655 輸出二叉樹 | Print Binary Tree Medium
656   Hard
657 機器人可否返回原點 | Robot Return to Origin
Easy
658 找到 K 個最接近的元素 | Find K Closest Elements Medium
659 分割數組爲連續子序列 | Split Array into Consecutive Subsequences Medium
660   Hard
661 圖片平滑器 | Image Smoother
Easy
662 二叉樹最大寬度 | Maximum Width of Binary Tree
Medium
663   Medium
664 奇怪的打印機 | Strange Printer Medium
665 非遞減數列 | Non-decreasing Array Medium
666   Medium
667 優美的排列 II | Beautiful Arrangement II Medium
668 乘法表中第k小的數 | Kth Smallest Number in Multiplication Table
Hard
669 修剪二叉搜索樹 | Trim a Binary Search Tree Easy
670 最大交換 | Maximum Swap
Medium
671 二叉樹中第二小的節點 | Second Minimum Node In a Binary Tree Easy
672 燈泡開關 Ⅱ | Bulb Switcher II
Medium
673 最長遞增子序列的個數 | Number of Longest Increasing Subsequence
Medium
674 最長連續遞增序列 | Longest Continuous Increasing Subsequence Easy
675 爲高爾夫比賽砍樹 | Cut Off Trees for Golf Event Hard
676 實現一個魔法字典 | Implement Magic Dictionary
Medium
677 鍵值映射 | Map Sum Pairs
Medium
678 有效的括號字符串 | Valid Parenthesis String
Medium
679 24點遊戲 | 24 Game Medium
680 驗證迴文字符串 Ⅱ | Valid Palindrome II
Easy
681   Medium
682 棒球比賽 | Baseball Game
Easy
683   Hard
684 冗餘鏈接 | Redundant Connection Medium
685 冗餘鏈接 II | Redundant Connection II
Hard
686 重複疊加字符串匹配 | Repeated String Match Easy
687 最長同值路徑 | Longest Univalue Path
Easy
688 「馬」在棋盤上的機率 | Knight Probability in Chessboard
Medium
689 三個無重疊子數組的最大和 | Maximum Sum of 3 Non-Overlapping Subarrays Hard
690 員工的重要性 | Employee Importance Easy
691 貼紙拼詞 | Stickers to Spell Word
Hard
692 前K個高頻單詞 | Top K Frequent Words
Medium
693 交替位二進制數 | Binary Number with Alternating Bits
Easy
694   Medium
695 島嶼的最大面積 | Max Area of Island Medium
696 計數二進制子串 | Count Binary Substrings
Easy
697 數組的度 | Degree of an Array
Easy
698 劃分爲k個相等的子集 | Partition to K Equal Sum Subsets
Medium
699 掉落的方塊 | Falling Squares
Hard
700 二叉搜索樹中的搜索 | Search in a Binary Search Tree
Easy
701 二叉搜索樹中的插入操做 | Insert into a Binary Search Tree Medium
702   Medium
703 數據流中的第K大元素 | Kth Largest Element in a Stream
Easy
704 二分查找 | Binary Search
Easy
705 設計哈希集合 | Design HashSet
Easy
706 設計哈希映射 | Design HashMap
Easy
707 設計鏈表 | Design Linked List
Easy
708   Medium
709 轉換成小寫字母 | To Lower Case
Easy
710 黑名單中的隨機數 | Random Pick with Blacklist Hard
711   Hard
712 兩個字符串的最小ASCII刪除和 | Minimum ASCII Delete Sum for Two Strings
Medium
713 乘積小於K的子數組 | Subarray Product Less Than K
Medium
714 買賣股票的最佳時機含手續費 | Best Time to Buy and Sell Stock with Transaction Fee
Medium
715 Range 模塊 | Range Module
Hard
716   Easy
717 1比特與2比特字符 | 1-bit and 2-bit Characters
Easy
718 最長重複子數組 | Maximum Length of Repeated Subarray
Medium
719 找出第 k 小的距離對 | Find K-th Smallest Pair Distance
Hard
720 詞典中最長的單詞 | Longest Word in Dictionary
Easy
721 帳戶合併 | Accounts Merge
Medium
722 刪除註釋 | Remove Comments
Medium
723   Medium
724 尋找數組的中心索引 | Find Pivot Index
Easy
725 分隔鏈表 | Split Linked List in Parts
Medium
726 原子的數量 | Number of Atoms
Hard
727   Hard
728 自除數 | Self Dividing Numbers
Easy
729 個人日程安排表 I | My Calendar I
Medium
730 統計不一樣迴文子字符串 | Count Different Palindromic Subsequences
Hard
731 個人日程安排表 II | My Calendar II
Medium
732 個人日程安排表 III | My Calendar III
Hard
733 圖像渲染 | Flood Fill
Easy
734   Easy
735 行星碰撞 | Asteroid Collision
Medium
736 Lisp 語法解析 | Parse Lisp Expression
Medium
737   Medium
738 單調遞增的數字 | Monotone Increasing Digits Medium
739 每日溫度 | Daily Temperatures
Medium
740 刪除與得到點數 | Delete and Earn Medium
741 摘櫻桃 | Cherry Pickup
Hard
742   Medium
743 網絡延遲時間 | Network Delay Time
Medium
744 尋找比目標字母大的最小字母 | Find Smallest Letter Greater Than Target Easy
745 前綴和後綴搜索 | Prefix and Suffix Search
Hard
746 使用最小花費爬樓梯 | Min Cost Climbing Stairs
Easy
747 至少是其餘數字兩倍的最大數 | Largest Number At Least Twice of Others Easy
748 最短完整詞 | Shortest Completing Word
Easy
749 隔離病毒 | Contain Virus
Hard
750   Medium
751   Easy
752 打開轉盤鎖 | Open the Lock
Medium
753 破解保險箱 | Cracking the Safe
Hard
754 到達終點數字 | Reach a Number
Easy
755   Medium
756 金字塔轉換矩陣 | Pyramid Transition Matrix
Medium
757 設置交集大小至少爲2 | Set Intersection Size At Least Two
Hard
758   Easy
759   Hard
760   Easy
761 特殊的二進制序列 | Special Binary String Hard
762 二進制表示中質數個計算置位 | Prime Number of Set Bits in Binary Representation Easy
763 劃分字母區間 | Partition Labels
Medium
764 最大加號標誌 | Largest Plus Sign
Medium
765 情侶牽手 | Couples Holding Hands
Hard
766 託普利茨矩陣 | Toeplitz Matrix
Easy
767 重構字符串 | Reorganize String
Medium
768 最多能完成排序的塊 II | Max Chunks To Make Sorted II
Hard
769 最多能完成排序的塊 | Max Chunks To Make Sorted Medium
770 基本計算器 IV | Basic Calculator IV Hard
771 寶石與石頭 | Jewels and Stones
Easy
772   Hard
773 滑動謎題 | Sliding Puzzle
Hard
774   Hard
775 全局倒置與局部倒置 | Global and Local Inversions
Medium
776   Medium
777 在LR字符串中交換相鄰字符 | Swap Adjacent in LR String
Medium
778 水位上升的泳池中游泳 | Swim in Rising Water
Hard
779 第K個語法符號 | K-th Symbol in Grammar
Medium
780 到達終點 | Reaching Points
Hard
781 森林中的兔子 | Rabbits in Forest
Medium
782 變爲棋盤 | Transform to Chessboard
Hard
783 二叉搜索樹結點最小距離 | Minimum Distance Between BST Nodes Easy
784 字母大小寫全排列 | Letter Case Permutation Easy
785 判斷二分圖 | Is Graph Bipartite?
Medium
786 第 K 個最小的素數分數 | K-th Smallest Prime Fraction
Hard
787 K 站中轉內最便宜的航班 | Cheapest Flights Within K Stops
Medium
788 旋轉數字 | Rotated Digits
Easy
789 逃脫阻礙者 | Escape The Ghosts
Medium
790 多米諾和托米諾平鋪 | Domino and Tromino Tiling
Medium
791 自定義字符串排序 | Custom Sort String
Medium
792 匹配子序列的單詞數 | Number of Matching Subsequences
Medium
793 階乘函數後K個零 | Preimage Size of Factorial Zeroes Function
Hard
794 有效的井字遊戲 | Valid Tic-Tac-Toe State
Medium
795 區間子數組個數 | Number of Subarrays with Bounded Maximum
Medium
796 旋轉字符串 | Rotate String
Easy
797 全部可能的路徑 | All Paths From Source to Target
Medium
798 得分最高的最小輪調 | Smallest Rotation with Highest Score
Hard
799 香檳塔 | Champagne Tower
Medium
800   Easy
801 使序列遞增的最小交換次數 | Minimum Swaps To Make Sequences Increasing Medium
802 找到最終的安全狀態 | Find Eventual Safe States
Medium
803 打磚塊 | Bricks Falling When Hit
Hard
804 惟一摩爾斯密碼詞 | Unique Morse Code Words
Easy
805 數組的均值分割 | Split Array With Same Average
Hard
806 寫字符串須要的行數 | Number of Lines To Write String
Easy
807 保持城市天際線 | Max Increase to Keep City Skyline
Medium
808 分湯 | Soup Servings Medium
809 情感豐富的文字 | Expressive Words
Medium
810 黑板異或遊戲 | Chalkboard XOR Game Hard
811 子域名訪問計數 | Subdomain Visit Count
Easy
812 最大三角形面積 | Largest Triangle Area
Easy
813 最大平均值和的分組 | Largest Sum of Averages
Medium
814 二叉樹剪枝 | Binary Tree Pruning Medium
815 公交路線 | Bus Routes
Hard
816 模糊座標 | Ambiguous Coordinates
Medium
817 鏈表組件 | Linked List Components
Medium
818 賽車 | Race Car
Hard
819 最多見的單詞 | Most Common Word
Easy
820 單詞的壓縮編碼 | Short Encoding of Words
Medium
821 字符的最短距離 | Shortest Distance to a Character Easy
822 翻轉卡片遊戲 | Card Flipping Game
Medium
823 帶因子的二叉樹 | Binary Trees With Factors Medium
824 山羊拉丁文 | Goat Latin Easy
825 適齡的朋友 | Friends Of Appropriate Ages
Medium
826 安排工做以達到最大收益 | Most Profit Assigning Work
Medium
827 最大人工島 | Making A Large Island
Hard
828 獨特字符串 | Unique Letter String
Hard
829 連續整數求和 | Consecutive Numbers Sum
Hard
830 較大分組的位置 | Positions of Large Groups
Easy
831 隱藏我的信息 | Masking Personal Information
Medium
832 翻轉圖像 | Flipping an Image Easy
833 字符串中的查找與替換 | Find And Replace in String
Medium
834 樹中距離之和 | Sum of Distances in Tree
Hard
835 圖像重疊 | Image Overlap
Medium
836 矩形重疊 | Rectangle Overlap
Easy
837 新21點 | New 21 Game
Medium
838 推多米諾 | Push Dominoes
Medium
839 類似字符串組 | Similar String Groups
Hard
840  矩陣中的幻方 | Magic Squares In Grid
Easy
841 鑰匙和房間 | Keys and Rooms
Medium
842 將數組拆分紅斐波那契序列 | Split Array into Fibonacci Sequence
Medium
843 猜猜這個單詞 | Guess the Word
Hard
844 比較含退格的字符串 | Backspace String Compare Easy
845 數組中的最長山脈 | Longest Mountain in Array
Medium
846 一手順子 | Hand of Straights
Medium
847 訪問全部節點的最短路徑 | Shortest Path Visiting All Nodes
Hard
848 字母移位 | Shifting Letters
Medium
849 到最近的人的最大距離 | Maximize Distance to Closest Person
Easy
850 矩形面積 II | Rectangle Area II
Hard
851 喧鬧和富有 | Loud and Rich
Medium
852 山脈數組的峯頂索引 | Peak Index in a Mountain Array Easy
853 車隊 | Car Fleet
Medium
854 類似度爲 K 的字符串 | K-Similar Strings
Hard
855 考場就座 | Exam Room
Medium
856 括號的分數 | Score of Parentheses
Medium
857 僱傭 K 名工人的最低成本 | Minimum Cost to Hire K Workers
Hard
858 鏡面反射 | Mirror Reflection
Medium
859 親密字符串 | Buddy Strings Easy
860 檸檬水找零 | Lemonade Change
Easy
861 翻轉矩陣後的得分 | Score After Flipping Matrix
Medium
862 和至少爲 K 的最短子數組 | Shortest Subarray with Sum at Least K
Hard
863 二叉樹中全部距離爲 K 的結點 | All Nodes Distance K in Binary Tree Medium
864 獲取全部鑰匙的最短路徑 | Shortest Path to Get All Keys
Hard
865 具備全部最深結點的最小子樹 | Smallest Subtree with all the Deepest Nodes Medium
866 迴文素數 | Prime Palindrome
Medium
867 轉置矩陣 | Transpose Matrix
Easy
868 二進制間距 | Binary Gap
Easy
869 從新排序獲得 2 的冪 | Reordered Power of 2 Medium
870 優點洗牌 | Advantage Shuffle
Medium
871 最低加油次數 | Minimum Number of Refueling Stops Hard
872 葉子類似的樹 | Leaf-Similar Trees Easy
873 最長的斐波那契子序列的長度 | Length of Longest Fibonacci Subsequence
Medium
874 模擬行走機器人 | Walking Robot Simulation
Easy
875 愛吃香蕉的珂珂 | Koko Eating Bananas
Medium
876 鏈表的中間結點 | Middle of the Linked List
Easy
877 石子游戲 | Stone Game
Medium
878 第 N 個神奇數字 | Nth Magical Number
Hard
879 盈利計劃 | Profitable Schemes
Hard
880 索引處的解碼字符串 | Decoded String at Index
Medium
881 救生艇 | Boats to Save People
Medium
882 細分圖中的可到達結點 | Reachable Nodes In Subdivided Graph Hard
883 三維形體投影面積 | Projection Area of 3D Shapes
Easy
884 兩句話中的不常見單詞 | Uncommon Words from Two Sentences
Easy
885 螺旋矩陣 III | Spiral Matrix III
Medium
886 可能的二分法 | Possible Bipartition
Medium
887 雞蛋掉落 | Super Egg Drop Hard
888 公平的糖果交換 | Fair Candy Swap
Easy
889 根據前序和後序遍歷構造二叉樹 | Construct Binary Tree from Preorder and Postorder Traversal Medium
890 查找和替換模式 | Find and Replace Pattern
Medium
891 子序列寬度之和 | Sum of Subsequence Widths
Hard
892 三維形體的表面積 | Surface Area of 3D Shapes
Easy
893 特殊等價字符串組 | Groups of Special-Equivalent Strings
Easy
894 全部可能的滿二叉樹 | All Possible Full Binary Trees
Medium
895 最大頻率棧 | Maximum Frequency Stack
Hard
896 單調數列 | Monotonic Array
Easy
897 遞增順序查找樹 | Increasing Order Search Tree
Easy
898 子數組按位或操做 | Bitwise ORs of Subarrays
Medium
899 有序隊列 | Orderly Queue
Hard
900 RLE 迭代器 | RLE Iterator
Medium
901 股票價格跨度 | Online Stock Span
Medium
902 最大爲 N 的數字組合 | Numbers At Most N Given Digit Set
Hard
903 DI 序列的有效排列 | Valid Permutations for DI Sequence
Hard
904 水果成籃 | Fruit Into Baskets
Medium
905 按奇偶排序數組 | Sort Array By Parity
Easy
906 超級迴文數 | Super Palindromes
Hard
907 子數組的最小值之和 | Sum of Subarray Minimums
Medium
908 最小差值 I | Smallest Range I
Easy
909 蛇梯棋 | Snakes and Ladders
Medium
910 最小差值 II | Smallest Range II
Medium
911 在線選舉 | Online Election Medium
912 排序數組 | Sort an Array
Medium
913 貓與老鼠 | Cat and Mouse Hard
914 一副牌中的X | X of a Kind in a Deck of Cards
Easy
915 將分區數組分紅不相交的間隔 | Partition Array into Disjoint Intervals
Medium
916 單詞子集 | Word Subsets Medium
917 僅僅反轉字母 | Reverse Only Letters Easy
918 環形子數組的最大和 | Maximum Sum Circular Subarray Medium
919 徹底二叉樹插入器 | Complete Binary Tree Inserter
Medium
920 播放列表的數量 | Number of Music Playlists
Hard
921 使括號有效的最少添加 | Minimum Add to Make Parentheses Valid
Medium
922 按奇偶排序數組 II | Sort Array By Parity II
Easy
923 三數之和的多種可能 | 3Sum With Multiplicity Medium
924 儘可能減小惡意軟件的傳播 | Minimize Malware Spread Hard
925 長按鍵入 | Long Pressed Name Easy
926 將字符串翻轉到單調遞增 | Flip String to Monotone Increasing
Medium
927 三等分 | Three Equal Parts
Hard
928 儘可能減小惡意軟件的傳播 II | Minimize Malware Spread II
Hard
929 獨特的電子郵件地址 | Unique Email Addresses Easy
930 和相同的二元子數組 | Binary Subarrays With Sum Medium
931 降低路徑最小和 | Minimum Falling Path Sum Medium
932 漂亮數組 | Beautiful Array Medium
933 最近的請求次數 | Number of Recent Calls Easy
934 最短的橋 | Shortest Bridge
Medium
935 騎士撥號器 | Knight Dialer Medium
936 戳印序列 | Stamping The Sequence
Hard
937 從新排列日誌文件 | Reorder Log Files Easy
938 二叉搜索樹的範圍和 | Range Sum of BST Medium
939 最小面積矩形 | Minimum Area Rectangle Medium
940 不一樣的子序列 II | Distinct Subsequences II Hard
941 有效的山脈數組 | Valid Mountain Array
Easy
942 增減字符串匹配 | DI String Match Easy
943 最短超級串 | Find the Shortest Superstring
Hard
944 刪除列以使之有序 | Delete Columns to Make Sorted Easy
945 使數組惟一的最小增量 | Minimum Increment to Make Array Unique Medium
946 驗證棧序列 | Validate Stack Sequences Medium
947 移除最多的同行或同列石頭 | Most Stones Removed with Same Row or Column
Medium
948 令牌放置 | Bag of Tokens Medium
949 給定數字能組成的最大時間 | Largest Time for Given Digits Easy
950 按遞增順序顯示卡牌 | Reveal Cards In Increasing Order
Medium
951 翻轉等價二叉樹 | Flip Equivalent Binary Trees
Medium
952 按公因數計算最大組件大小 | Largest Component Size by Common Factor Hard
953 驗證外星語詞典 | Verifying an Alien Dictionary Easy
954 二倍數對數組 | Array of Doubled Pairs Medium
955 刪列造序 II | Delete Columns to Make Sorted II
Medium
956 最高的廣告牌 | Tallest Billboard
Hard
957 N天后的牢房 | Prison Cells After N Days
Medium
958 二叉樹的徹底性檢驗 | Check Completeness of a Binary Tree
Medium
959 由斜槓劃分區域 | Regions Cut By Slashes Medium
960 刪列造序 III | Delete Columns to Make Sorted III
Hard
961 重複 N 次的元素 | N-Repeated Element in Size 2N Array Easy
962 最大寬度坡 | Maximum Width Ramp Medium
963 最小面積矩形 II | Minimum Area Rectangle II Medium
964 表示數字的最少運算符 | Least Operators to Express Number Hard
965 單值二叉樹 | Univalued Binary Tree Easy
966 元音拼寫檢查器 | Vowel Spellchecker
Medium
967 連續差相同的數字 | Numbers With Same Consecutive Differences
Medium
968 監控二叉樹 | Binary Tree Cameras Hard
969 煎餅排序 | Pancake Sorting
Medium
970 強整數 | Powerful Integers
Easy
971 翻轉二叉樹以匹配先序遍歷 | Flip Binary Tree To Match Preorder Traversal Medium
972 相等的有理數 | Equal Rational Numbers
Hard
973 最接近原點的 K 個點 | K Closest Points to Origin
Medium
974 和可被 K 整除的子數組 | Subarray Sums Divisible by K
Medium
975 奇偶跳 | Odd Even Jump
Hard
976 三角形的最大周長 | Largest Perimeter Triangle Easy
977 有序數組的平方 | Squares of a Sorted Array Easy
978 最長湍流子數組 | Longest Turbulent Subarray Medium
979 在二叉樹中分配硬幣 | Distribute Coins in Binary Tree
Medium
980 不一樣路徑 III | Unique Paths III
Hard
981 基於時間的鍵值存儲 | Time Based Key-Value Store Medium
982 按位與爲零的三元組 | Triples with Bitwise AND Equal To Zero Hard
983 最低票價 | Minimum Cost For Tickets Medium
984 不含 AAA 或 BBB 的字符串 | String Without AAA or BBB Medium
985 查詢後的偶數和 | Sum of Even Numbers After Queries
Easy
986 區間列表的交集 | Interval List Intersections Medium
987 二叉樹的垂序遍歷 | Vertical Order Traversal of a Binary Tree
Medium
988 從葉結點開始的最小字符串 | Smallest String Starting From Leaf Medium
989 數組形式的整數加法 | Add to Array-Form of Integer Easy
990 等式方程的可知足性 | Satisfiability of Equality Equations Medium
991 壞了的計算器 | Broken Calculator Medium
992 K 個不一樣整數的子數組 | Subarrays with K Different Integers Hard
993 二叉樹的堂兄弟節點 | Cousins in Binary Tree Easy
994 腐爛的橘子 | Rotting Oranges Easy
995 K 連續位的最小翻轉次數 | Minimum Number of K Consecutive Bit Flips
Hard
996 正方形數組的數目 | Number of Squareful Arrays Hard
997 找到小鎮的法官 | Find the Town Judge
Easy
998 最大二叉樹 II | Maximum Binary Tree II
Medium
999 車的可用捕獲量 | Available Captures for Rook Easy
1000 合併石頭的最低成本 | Minimum Cost to Merge Stones Hard
1001 網格照明 | Grid Illumination Hard
1002 查找經常使用字符 | Find Common Characters Easy
1003 檢查替換後的詞是否有效 | Check If Word Is Valid After Substitutions Medium
1004 最大連續1的個數 III | Max Consecutive Ones III Medium
1005 K 次取反後最大化的數組和 | Maximize Sum Of Array After K Negations Easy
1006 笨階乘 | Clumsy Factorial Medium
1007 行相等的最少多米諾旋轉 | Minimum Domino Rotations For Equal Row Medium
1008 先序遍歷構造二叉樹 | Construct Binary Search Tree from Preorder Traversal Medium
1009 十進制整數的補碼 | Complement of Base 10 Integer Easy
1010 總持續時間可被 60 整除的歌曲 | Pairs of Songs With Total Durations Divisible by 60
Easy
1011 在 D 天內送達包裹的能力 | Capacity To Ship Packages Within D Days Medium
1012 至少有 1 位重複的數字 | Numbers With 1 Repeated Digit
Hard
1013 將數組分紅和相等的三個部分 | Partition Array Into Three Parts With Equal Sum
Easy
1014 最佳觀光組合 | Best Sightseeing Pair Medium
1015 可被 K 整除的最小整數 | Smallest Integer Divisible by K
Medium
1016 子串能表示從 1 到 N 數字的二進制串 | Binary String With Substrings Representing 1 To N
Medium
1017 負二進制轉換 | Convert to Base -2
Medium
1018 可被 5 整除的二進制前綴 | Binary Prefix Divisible By 5
Easy
1019 鏈表中的下一個更大節點 | Next Greater Node In Linked List
Medium
1020 飛地的數量 | Number of Enclaves
Medium
1021 刪除最外層的括號 | Remove Outermost Parentheses
Easy
1022 從根到葉的二進制數之和 | Sum of Root To Leaf Binary Numbers
Easy
1023 駝峯式匹配 | Camelcase Matching Medium
1024 視頻拼接 | Video Stitching
Medium
1025 除數博弈 | Divisor Game Easy
1026 節點與其祖先之間的最大差值 | Maximum Difference Between Node and Ancestor
Medium
1027 最長等差數列 | Longest Arithmetic Sequence
Medium
1028 從先序遍歷還原二叉樹 | Recover a Tree From Preorder Traversal Hard
1029 兩地調度 | Two City Scheduling Easy
1030 距離順序排列矩陣單元格 | Matrix Cells in Distance Order
Easy
1031 兩個非重疊子數組的最大和 | Maximum Sum of Two Non-Overlapping Subarrays
Medium
1032 字符流 | Stream of Characters
Hard
1033 移動石子直到連續 | Moving Stones Until Consecutive
Easy
1034 邊框着色 | Coloring A Border
Medium
1035 不相交的線 | Uncrossed Lines
Medium
1036 逃離大迷宮 | Escape a Large Maze
Hard
1037 有效的迴旋鏢 | Valid Boomerang
Easy
1038 從二叉搜索樹到更大和樹 | Binary Search Tree to Greater Sum Tree
Medium
1039 多邊形三角剖分的最低得分 | Minimum Score Triangulation of Polygon
Medium
1040 移動石子直到連續 II | Moving Stones Until Consecutive II
Medium
1041 困於環中的機器人 | Robot Bounded In Circle
Easy
1042 不鄰接植花 | Flower Planting With No Adjacent
Easy
1043 分隔數組以獲得最大和 | Partition Array for Maximum Sum
Medium
1044 最長重複子串 | Longest Duplicate Substring
Hard
1045 購買全部產品的客戶 | Customers Who Bought All Products Medium
1046 最後一塊石頭的重量 | Last Stone Weight Easy
1047 刪除字符串中的全部相鄰重複項 | Remove All Adjacent Duplicates In String Easy
1048 最長字符串鏈 | Longest String Chain Medium
1049 最後一塊石頭的重量 II | Last Stone Weight II
Medium
1050 合做至少三次的演員和導演 | Actors and Directors Who Cooperated At Least Three Times Easy
1051 高度檢查器 | Height Checker
Easy
1052 愛生氣的書店老闆 | Grumpy Bookstore Owner
Medium
1053 交換一次的先前排列 | Previous Permutation With One Swap
Medium
1054 距離相等的條形碼 | Distant Barcodes Medium
1055    
1056    
1057    
1058    
1059    
1060    
1061    
1062    
1063    
1064 不動點 | Fixed Point
Easy
1065 字符串的索引對 | Index Pairs of a String
Easy
1066 校園自行車分配 II | Campus Bikes II
Medium
1067 範圍內的數字計數 | Digit Count in Range Hard
1068    
1069    
1070    
1071 字符串的最大公因子 | Greatest Common Divisor of Strings Easy
1072 按列翻轉獲得最大值等行數 | Flip Columns For Maximum Number of Equal Rows
Medium
1073 負二進制數相加 | Adding Two Negabinary Numbers
Medium
1074 元素和爲目標值的子矩陣數量 | Number of Submatrices That Sum to Target
Hard
1075    
1076    
1077    
1078 Bigram 分詞 | Occurrences After Bigram Easy
1079 活字印刷 | Letter Tile Possibilities
Medium
1080 根到葉路徑上的不足節點 | Insufficient Nodes in Root to Leaf Paths
Medium
1081 不一樣字符的最小子序列 | Smallest Subsequence of Distinct Characters
Medium
1082    
1083    
1084    
1085 最小元素各數位之和 | Sum of Digits in the Minimum Number Easy
1086 前五科的均分 | High Five
Easy
1087 字母切換 | Permutation of Letters
Medium
1088 易混淆數 II | Confusing Number II
Hard
1089 複寫零 | Duplicate Zeros
Easy
1090 受標籤影響的最大值 | Largest Values From Labels
Medium
1091 二進制矩陣中的最短路徑 | Shortest Path in Binary Matrix
Medium
1092 最短公共超序列 | Shortest Common Supersequence
Hard
1093 大樣本統計 | Statistics from a Large Sample
Medium
1094 拼車 | Car Pooling
Medium
1095 山脈數組中查找目標值 | Find in Mountain Array
Hard
1096 花括號展開 II | Brace Expansion II
Hard
1097   Hard
1098   Medium
1099 小於 K 的兩數之和 | Two Sum Less Than K
Easy
1100 長度爲 K 的無重複字符子串 | Find K-Length Substrings With No Repeated Characters
Medium
1101 彼此熟識的最先時間 | The Earliest Moment When Everyone Become Friends Medium
1102 得分最高的路徑 | Path With Maximum Minimum Value Medium
1103 分糖果 II | Distribute Candies to People Easy
1104 二叉樹尋路 | Path In Zigzag Labelled Binary Tree Easy
1105 填充書架 | Filling Bookcase Shelves Medium
1106 解析布爾表達式 | Parsing A Boolean Expression Hard
1107   Medium
1108 IP 地址無效化 | Defanging an IP Address Easy
1109 航班預訂統計 | Corporate Flight Bookings Medium
1110 刪點成林 | Delete Nodes And Return Forest Medium
1111 有效括號的嵌套深度 | Maximum Nesting Depth of Two Valid Parentheses Strings Medium
1112   Medium
1113   Easy
1114 按序打印 | Print in Order Easy
1115 交替打印FooBar | Print FooBar Alternately Medium
1116 打印零與奇偶數 | Print Zero Even Odd Medium
1117 H2O 生成 | Building H2O Hard
1118 一月有多少天 | Number of Days in a Month Easy
1119 刪去字符串中的元音 | Remove Vowels from a String Easy
1120 子樹的最大平均值 | Maximum Average Subtree Medium
1121 將數組分紅幾個遞增序列 | Divide Array Into Increasing Sequences Hard
1122 數組的相對排序 | Relative Sort Array Easy
1123 最深葉節點的最近公共祖先 | Lowest Common Ancestor of Deepest Leaves Medium
1124 表現良好的最長時間段 | Longest Well-Performing Interval Medium
1125 最小的必要團隊 | Smallest Sufficient Team Hard
1126    
1127    
1128 等價多米諾骨牌對的數量 | Number of Equivalent Domino Pairs Easy
1129 顏色交替的最短路徑 | Shortest Path with Alternating Colors Medium
1130 葉值的最小代價生成樹 | Minimum Cost Tree From Leaf Values Medium
1131 絕對值表達式的最大值 | Maximum of Absolute Value Expression Medium
1132   Medium
1133 最大惟一數 | Largest Unique Number Easy
1134 阿姆斯特朗數 | Armstrong Number Easy
1135 最低成本聯通全部城市 | Connecting Cities With Minimum Cost Medium
1136 平行課程 | Parallel Courses Hard
1137 第 N 個泰波那契數 | N-th Tribonacci Number Easy
1138 字母板上的路徑 | Alphabet Board Path Medium
1139 最大的以 1 爲邊界的正方形 | Largest 1-Bordered Square Medium
1140 石子游戲 II | Stone Game II Medium
1141    
1142    
1143 最長公共子序列 | Longest Common Subsequence Medium
1144 遞減元素使數組呈鋸齒狀 | Decrease Elements To Make Array Zigzag Medium
1145 二叉樹着色遊戲 | Binary Tree Coloring Game Medium
1146 快照數組 | Snapshot Array Medium
1147 段式迴文 | Longest Chunked Palindrome Decomposition Hard
1148   Easy
1149   Medium
1150 檢查一個數是否在數組中佔絕大多數 | Check If a Number Is Majority Element in a Sorted Array Easy
1151 最少交換次數來組合全部的 1 | Minimum Swaps to Group All 1's Together Medium
1152 用戶網站訪問行爲分析 | Analyze User Website Visit Pattern Medium
1153 字符串轉化 | String Transforms Into Another String Hard
1154 一年中的第幾天 | Ordinal Number Of Date Easy
1155 擲骰子的N種方法 | Number of Dice Rolls With Target Sum Medium
1156 單字符重複子串的最大長度 | Swap For Maximum Repeated Substring Medium
1157 子數組中佔絕大多數的元素 | Online Majority Element In Subarray Hard
1158   Medium
1159   Hard
1160 拼寫單詞 | Find Words That Can Be Formed by Characters Easy
1161 最大層內元素和 | Maximum Level Sum of a Binary Tree Medium
1162 地圖分析 | As Far from Land as Possible Medium
1163 按字典序排在最後的子串 | Last Substring in Lexicographical Order Hard
1164   Medium
1165 單行鍵盤 | Single-Row Keyboard Easy
1166 設計文件系統 | Design File System Medium
1167 鏈接棒材的最低費用 | Minimum Cost to Connect Sticks Medium
1168 水資源分配優化 | Optimize Water Distribution in a Village Hard
1169 查詢無效交易 | Invalid Transactions Easy
1170 比較字符串最小字母出現頻次 | Compare Strings by Frequency of the Smallest Character Easy
1171 從鏈表中刪去總和值爲零的連續節點 | Remove Zero Sum Consecutive Nodes from Linked List Hard
1172 餐盤棧 | Dinner Plate Stacks  
1173    
1174    
1175 質數排列 | Prime Arrangements Easy
1176 健身計劃評估 | Diet Plan Performance Easy
1177 構建迴文串檢測 | Can Make Palindrome from Substring Medium
1178 猜字謎 | Number of Valid Words for Each Puzzle Hard
1179 從新格式化部門表 | Reformat Department Table Easy
1180 統計只含單一字母的子串 | Count Substrings with Only One Distinct Letter Easy
1181 先後拼接 | Before and After Puzzle Medium
1182 與目標顏色間的最短距離 | Shortest Distance to Target Color Medium
1183 矩陣中 1 的最大數量 | Maximum Number of Ones Hard
1184 公交站間的距離 | Distance Between Bus Stops Easy
1185 刪除一次獲得子數組最大和 | Maximum Subarray Sum with One Deletion Easy
1186 一週中的第幾天 | Day of the Week Medium
1187 使數組嚴格遞增 | Make Array Strictly Increasing Hard
1188    
1189    
1190    
1191    
1192    
1193    
1194    
1195    
1196    
1197    
1198    
1199    
1200
相關文章
相關標籤/搜索