Last Updated Problem Set: January 9, 2018
Repo format made by MrMiaoMiao
This repo is made so that I can track my progress starting January 2019 with the goal being at least 1 question per day. Most problems will be solved using C++ with the exception of Shell and Database questions. I will also try to comment my code as much as possible to make it more readable for future reference.
As my goal for 2019, I am aiming to learn C++ throughout these challenges and get familiar using git when working with Github. Runtime is not my main focus, however I will try to solve as many problems in the optimal time and memory complexity as possible.
In order to sort the table below (since Github doesn't allow it as of now), install the following:
- Tampermonkey
- Github Sort Content (Tampermonkey script)
Symbol | Description |
---|---|
⭕ | Question Complete |
🕒 | Question in Progress |
🐌 | Suboptimal Solution |
🔒 | Question Locked (Premium) |
# | Title | Difficulty | Category | Completion | Runtime |
---|---|---|---|---|---|
1 | Two Sum | Easy | Algorithm | ⭕ | 8ms |
2 | Add Two Numbers | Medium | Algorithm | ⭕ | 60ms |
3 | Longest Substring Without Repeating Characters | Medium | Algorithm | ⭕ | 24ms |
4 | Median of Two Sorted Arrays | Hard | Algorithm | 🐌 | 52ms |
5 | Longest Palindromic Substring | Medium | Algorithm | ⭕ | 12ms |
6 | ZigZag Conversion | Medium | Algorithm | ⭕ | 36ms |
7 | Reverse Integer | Easy | Algorithm | ⭕ | 16ms |
8 | String to Integer (atoi) | Medium | Algorithm | ⭕ | 24ms |
9 | Palindrome Number | Easy | Algorithm | ⭕ | 248ms |
10 | Regular Expression Matching | Hard | Algorithm | 🕒 | |
11 | Container With Most Water | Medium | Algorithm | ⭕ | 20ms |
12 | Integer to Roman | Medium | Algorithm | ⭕ | 68ms |
13 | Roman to Integer | Easy | Algorithm | ⭕ | 88ms |
14 | Longest Common Prefix | Easy | Algorithm | ⭕ | 8ms |
15 | 3Sum | Medium | Algorithm | ⭕ | 104ms |
16 | 3Sum Closest | Medium | Algorithm | ⭕ | 8ms |
17 | Letter Combinations of a Phone Number | Medium | Algorithm | ⭕ | 0ms |
18 | 4Sum | Medium | Algorithm | ⭕ | 52ms |
19 | Remove Nth Node From End of List | Medium | Algorithm | ⭕ | 8ms |
20 | Valid Parentheses | Easy | Algorithm | ⭕ | 4ms |
21 | Merge Two Sorted Lists | Easy | Algorithm | ⭕ | 8ms |
22 | Generate Parentheses | Medium | Algorithm | ⭕ | 0ms |
23 | Merge k Sorted Lists | Hard | Algorithm | ⭕ | 28ms |
24 | Swap Nodes in Pairs | Medium | Algorithm | 🕒 | |
25 | Reverse Nodes in k-Group | Hard | Algorithm | 🕒 | |
26 | Remove Duplicates from Sorted Array | Easy | Algorithm | ⭕ | 28ms |
27 | Remove Element | Easy | Algorithm | ⭕ | 4ms |
28 | Implement strStr() | Easy | Algorithm | ⭕ | 4ms |
29 | Divide Two Integers | Medium | Algorithm | ⭕ | 12ms |
30 | Substring with Concatenation of All Words | Hard | Algorithm | ||
31 | Next Permutation | Medium | Algorithm | ||
32 | Longest Valid Parentheses | Hard | Algorithm | ||
33 | Search in Rotated Sorted Array | Medium | Algorithm | ||
34 | Find First and Last Position of Element in Sorted Array | Medium | Algorithm | ||
35 | Search Insert Position | Easy | Algorithm | ||
36 | Valid Sudoku | Medium | Algorithm | ||
37 | Sudoku Solver | Hard | Algorithm | ||
38 | Count and Say | Easy | Algorithm | ||
39 | Combination Sum | Medium | Algorithm | ||
40 | Combination Sum II | Medium | Algorithm | ||
41 | First Missing Positive | Hard | Algorithm | ||
42 | Trapping Rain Water | Hard | Algorithm | ||
43 | Multiply Strings | Medium | Algorithm | ||
44 | Wildcard Matching | Hard | Algorithm | ||
45 | Jump Game II | Hard | Algorithm | ||
46 | Permutations | Medium | Algorithm | ||
47 | Permutations II | Medium | Algorithm | ||
48 | Rotate Image | Medium | Algorithm | ||
49 | Group Anagrams | Medium | Algorithm | ||
50 | Pow(x, n) | Medium | Algorithm | ||
51 | N-Queens | Hard | Algorithm | ||
52 | N-Queens II | Hard | Algorithm | ||
53 | Maximum Subarray | Easy | Algorithm | ||
54 | Spiral Matrix | Medium | Algorithm | ||
55 | Jump Game | Medium | Algorithm | ||
56 | Merge Intervals | Medium | Algorithm | ||
57 | Insert Interval | Hard | Algorithm | ||
58 | Length of Last Word | Easy | Algorithm | ||
59 | Spiral Matrix II | Medium | Algorithm | ||
60 | Permutation Sequence | Medium | Algorithm | ||
61 | Rotate List | Medium | Algorithm | ||
62 | Unique Paths | Medium | Algorithm | ||
63 | Unique Paths II | Medium | Algorithm | ||
64 | Minimum Path Sum | Medium | Algorithm | ||
65 | Valid Number | Hard | Algorithm | ||
66 | Plus One | Easy | Algorithm | ||
67 | Add Binary | Easy | Algorithm | ||
68 | Text Justification | Hard | Algorithm | ||
69 | Sqrt(x) | Easy | Algorithm | ||
70 | Climbing Stairs | Easy | Algorithm | ||
71 | Simplify Path | Medium | Algorithm | ||
72 | Edit Distance | Hard | Algorithm | ||
73 | Set Matrix Zeroes | Medium | Algorithm | ||
74 | Search a 2D Matrix | Medium | Algorithm | ||
75 | Sort Colors | Medium | Algorithm | ||
76 | Minimum Window Substring | Hard | Algorithm | ||
77 | Combinations | Medium | Algorithm | ||
78 | Subsets | Medium | Algorithm | ||
79 | Word Search | Medium | Algorithm | ||
80 | Remove Duplicates from Sorted Array II | Medium | Algorithm | ||
81 | Search in Rotated Sorted Array II | Medium | Algorithm | ||
82 | Remove Duplicates from Sorted List II | Medium | Algorithm | ||
83 | Remove Duplicates from Sorted List | Easy | Algorithm | ||
84 | Largest Rectangle in Histogram | Hard | Algorithm | ||
85 | Maximal Rectangle | Hard | Algorithm | ||
86 | Partition List | Medium | Algorithm | ||
87 | Scramble String | Hard | Algorithm | ||
88 | Merge Sorted Array | Easy | Algorithm | ||
89 | Gray Code | Medium | Algorithm | ||
90 | Subsets II | Medium | Algorithm | ||
91 | Decode Ways | Medium | Algorithm | ||
92 | Reverse Linked List II | Medium | Algorithm | ||
93 | Restore IP Addresses | Medium | Algorithm | ||
94 | Binary Tree Inorder Traversal | Medium | Algorithm | ||
95 | Unique Binary Search Trees II | Medium | Algorithm | ||
96 | Unique Binary Search Trees | Medium | Algorithm | ||
97 | Interleaving String | Hard | Algorithm | ||
98 | Validate Binary Search Tree | Medium | Algorithm | ||
99 | Recover Binary Search Tree | Hard | Algorithm | ||
100 | Same Tree | Easy | Algorithm | ||
101 | Symmetric Tree | Easy | Algorithm | ||
102 | Binary Tree Level Order Traversal | Medium | Algorithm | ||
103 | Binary Tree Zigzag Level Order Traversal | Medium | Algorithm | ||
104 | Maximum Depth of Binary Tree | Easy | Algorithm | ||
105 | Construct Binary Tree from Preorder and Inorder Traversal | Medium | Algorithm | ||
106 | Construct Binary Tree from Inorder and Postorder Traversal | Medium | Algorithm | ||
107 | Binary Tree Level Order Traversal II | Easy | Algorithm | ||
108 | Convert Sorted Array to Binary Search Tree | Easy | Algorithm | ||
109 | Convert Sorted List to Binary Search Tree | Medium | Algorithm | ||
110 | Balanced Binary Tree | Easy | Algorithm | ||
111 | Minimum Depth of Binary Tree | Easy | Algorithm | ||
112 | Path Sum | Easy | Algorithm | ||
113 | Path Sum II | Medium | Algorithm | ||
114 | Flatten Binary Tree to Linked List | Medium | Algorithm | ||
115 | Distinct Subsequences | Hard | Algorithm | ||
116 | Populating Next Right Pointers in Each Node | Medium | Algorithm | ||
117 | Populating Next Right Pointers in Each Node II | Medium | Algorithm | ||
118 | Pascal's Triangle | Easy | Algorithm | ||
119 | Pascal's Triangle II | Easy | Algorithm | ||
120 | Triangle | Medium | Algorithm | ||
121 | Best Time to Buy and Sell Stock | Easy | Algorithm | ||
122 | Best Time to Buy and Sell Stock II | Easy | Algorithm | ||
123 | Best Time to Buy and Sell Stock III | Hard | Algorithm | ||
124 | Binary Tree Maximum Path Sum | Hard | Algorithm | ||
125 | Valid Palindrome | Easy | Algorithm | ||
126 | Word Ladder II | Hard | Algorithm | ||
127 | Word Ladder | Medium | Algorithm | ||
128 | Longest Consecutive Sequence | Hard | Algorithm | ||
129 | Sum Root to Leaf Numbers | Medium | Algorithm | ||
130 | Surrounded Regions | Medium | Algorithm | ||
131 | Palindrome Partitioning | Medium | Algorithm | ||
132 | Palindrome Partitioning II | Hard | Algorithm | ||
133 | Clone Graph | Medium | Algorithm | ||
134 | Gas Station | Medium | Algorithm | ||
135 | Candy | Hard | Algorithm | ||
136 | Single Number | Easy | Algorithm | ||
137 | Single Number II | Medium | Algorithm | ||
138 | Copy List with Random Pointer | Medium | Algorithm | ||
139 | Word Break | Medium | Algorithm | ||
140 | Word Break II | Hard | Algorithm | ||
141 | Linked List Cycle | Easy | Algorithm | ||
142 | Linked List Cycle II | Medium | Algorithm | ||
143 | Reorder List | Medium | Algorithm | ||
144 | Binary Tree Preorder Traversal | Medium | Algorithm | ||
145 | Binary Tree Postorder Traversal | Hard | Algorithm | ||
146 | LRU Cache | Hard | Algorithm | ||
147 | Insertion Sort List | Medium | Algorithm | ||
148 | Sort List | Medium | Algorithm | ||
149 | Max Points on a Line | Hard | Algorithm | ||
150 | Evaluate Reverse Polish Notation | Medium | Algorithm | ||
151 | Reverse Words in a String | Medium | Algorithm | ||
152 | Maximum Product Subarray | Medium | Algorithm | ||
153 | Find Minimum in Rotated Sorted Array | Medium | Algorithm | ||
154 | Find Minimum in Rotated Sorted Array II | Hard | Algorithm | ||
155 | Min Stack | Easy | Algorithm | ||
156 | Binary Tree Upside Down | Medium | Algorithm | 🔒 | |
157 | Read N Characters Given Read4 | Easy | Algorithm | 🔒 | |
158 | Read N Characters Given Read4 II - Call multiple times | Hard | Algorithm | 🔒 | |
159 | Longest Substring with At Most Two Distinct Characters | Hard | Algorithm | 🔒 | |
160 | Intersection of Two Linked Lists | Easy | Algorithm | ||
161 | One Edit Distance | Medium | Algorithm | 🔒 | |
162 | Find Peak Element | Medium | Algorithm | ||
163 | Missing Ranges | Medium | Algorithm | 🔒 | |
164 | Maximum Gap | Hard | Algorithm | ||
165 | Compare Version Numbers | Medium | Algorithm | ||
166 | Fraction to Recurring Decimal | Medium | Algorithm | ||
167 | Two Sum II - Input array is sorted | Easy | Algorithm | ||
168 | Excel Sheet Column Title | Easy | Algorithm | ||
169 | Majority Element | Easy | Algorithm | ||
170 | Two Sum III - Data structure design | Easy | Algorithm | 🔒 | |
171 | Excel Sheet Column Number | Easy | Algorithm | ||
172 | Factorial Trailing Zeroes | Easy | Algorithm | ||
173 | Binary Search Tree Iterator | Medium | Algorithm | ||
174 | Dungeon Game | Hard | Algorithm | ||
175 | Combine Two Tables | Easy | Database | ||
176 | Second Highest Salary | Easy | Database | ||
177 | Nth Highest Salary | Medium | Database | ||
178 | Rank Scores | Medium | Database | ||
179 | Largest Number | Medium | Algorithm | ||
180 | Consecutive Numbers | Medium | Database | ||
181 | Employees Earning More Than Their Managers | Easy | Database | ||
182 | Duplicate Emails | Easy | Database | ||
183 | Customers Who Never Order | Easy | Database | ||
184 | Department Highest Salary | Medium | Database | ||
185 | Department Top Three Salaries | Hard | Database | ||
186 | Reverse Words in a String II | Medium | Algorithm | 🔒 | |
187 | Repeated DNA Sequences | Medium | Algorithm | ||
188 | Best Time to Buy and Sell Stock IV | Hard | Algorithm | ||
189 | Rotate Array | Easy | Algorithm | ||
190 | Reverse Bits | Easy | Algorithm | ||
191 | Number of 1 Bits | Easy | Algorithm | ||
192 | Word Frequency | Medium | Shell | ||
193 | Valid Phone Numbers | Easy | Shell | ||
194 | Transpose File | Medium | Shell | ||
195 | Tenth Line | Easy | Shell | ||
196 | Delete Duplicate Emails | Easy | Database | ||
197 | Rising Temperature | Easy | Database | ||
198 | House Robber | Easy | Algorithm | ||
199 | Binary Tree Right Side View | Medium | Algorithm | ||
200 | Number of Islands | Medium | Algorithm | ||
201 | Bitwise AND of Numbers Range | Medium | Algorithm | ||
202 | Happy Number | Easy | Algorithm | ||
203 | Remove Linked List Elements | Easy | Algorithm | ||
204 | Count Primes | Easy | Algorithm | ||
205 | Isomorphic Strings | Easy | Algorithm | ||
206 | Reverse Linked List | Easy | Algorithm | ||
207 | Course Schedule | Medium | Algorithm | ||
208 | Implement Trie (Prefix Tree) | Medium | Algorithm | ||
209 | Minimum Size Subarray Sum | Medium | Algorithm | ||
210 | Course Schedule II | Medium | Algorithm | ||
211 | Add and Search Word - Data structure design | Medium | Algorithm | ||
212 | Word Search II | Hard | Algorithm | ||
213 | House Robber II | Medium | Algorithm | ||
214 | Shortest Palindrome | Hard | Algorithm | ||
215 | Kth Largest Element in an Array | Medium | Algorithm | ||
216 | Combination Sum III | Medium | Algorithm | ||
217 | Contains Duplicate | Easy | Algorithm | ||
218 | The Skyline Problem | Hard | Algorithm | ||
219 | Contains Duplicate II | Easy | Algorithm | ||
220 | Contains Duplicate III | Medium | Algorithm | ||
221 | Maximal Square | Medium | Algorithm | ||
222 | Count Complete Tree Nodes | Medium | Algorithm | ||
223 | Rectangle Area | Medium | Algorithm | ||
224 | Basic Calculator | Hard | Algorithm | ||
225 | Implement Stack using Queues | Easy | Algorithm | ||
226 | Invert Binary Tree | Easy | Algorithm | ||
227 | Basic Calculator II | Medium | Algorithm | ||
228 | Summary Ranges | Medium | Algorithm | ||
229 | Majority Element II | Medium | Algorithm | ||
230 | Kth Smallest Element in a BST | Medium | Algorithm | ||
231 | Power of Two | Easy | Algorithm | ||
232 | Implement Queue using Stacks | Easy | Algorithm | ||
233 | Number of Digit One | Hard | Algorithm | ||
234 | Palindrome Linked List | Easy | Algorithm | ||
235 | Lowest Common Ancestor of a Binary Search Tree | Easy | Algorithm | ||
236 | Lowest Common Ancestor of a Binary Tree | Medium | Algorithm | ||
237 | Delete Node in a Linked List | Easy | Algorithm | ||
238 | Product of Array Except Self | Medium | Algorithm | ||
239 | Sliding Window Maximum | Hard | Algorithm | ||
240 | Search a 2D Matrix II | Medium | Algorithm | ||
241 | Different Ways to Add Parentheses | Medium | Algorithm | ||
242 | Valid Anagram | Easy | Algorithm | ||
243 | Shortest Word Distance | Easy | Algorithm | 🔒 | |
244 | Shortest Word Distance II | Medium | Algorithm | 🔒 | |
245 | Shortest Word Distance III | Medium | Algorithm | 🔒 | |
246 | Strobogrammatic Number | Easy | Algorithm | 🔒 | |
247 | Strobogrammatic Number II | Medium | Algorithm | 🔒 | |
248 | Strobogrammatic Number III | Hard | Algorithm | 🔒 | |
249 | Group Shifted Strings | Medium | Algorithm | 🔒 | |
250 | Count Univalue Subtrees | Medium | Algorithm | 🔒 | |
251 | Flatten 2D Vector | Medium | Algorithm | 🔒 | |
252 | Meeting Rooms | Easy | Algorithm | 🔒 | |
253 | Meeting Rooms II | Medium | Algorithm | 🔒 | |
254 | Factor Combinations | Medium | Algorithm | 🔒 | |
255 | Verify Preorder Sequence in Binary Search Tree | Medium | Algorithm | 🔒 | |
256 | Paint House | Easy | Algorithm | 🔒 | |
257 | Binary Tree Paths | Easy | Algorithm | ||
258 | Add Digits | Easy | Algorithm | ||
259 | 3Sum Smaller | Medium | Algorithm | 🔒 | |
260 | Single Number III | Medium | Algorithm | ||
261 | Graph Valid Tree | Medium | Algorithm | 🔒 | |
262 | Trips and Users | Hard | Database | ||
263 | Ugly Number | Easy | Algorithm | ||
264 | Ugly Number II | Medium | Algorithm | ||
265 | Paint House II | Hard | Algorithm | 🔒 | |
266 | Palindrome Permutation | Easy | Algorithm | 🔒 | |
267 | Palindrome Permutation II | Medium | Algorithm | 🔒 | |
268 | Missing Number | Easy | Algorithm | ||
269 | Alien Dictionary | Hard | Algorithm | 🔒 | |
270 | Closest Binary Search Tree Value | Easy | Algorithm | 🔒 | |
271 | Encode and Decode Strings | Medium | Algorithm | 🔒 | |
272 | Closest Binary Search Tree Value II | Hard | Algorithm | 🔒 | |
273 | Integer to English Words | Hard | Algorithm | ||
274 | H-Index | Medium | Algorithm | ||
275 | H-Index II | Medium | Algorithm | ||
276 | Paint Fence | Easy | Algorithm | 🔒 | |
277 | Find the Celebrity | Medium | Algorithm | 🔒 | |
278 | First Bad Version | Easy | Algorithm | ||
279 | Perfect Squares | Medium | Algorithm | ||
280 | Wiggle Sort | Medium | Algorithm | 🔒 | |
281 | Zigzag Iterator | Medium | Algorithm | 🔒 | |
282 | Expression Add Operators | Hard | Algorithm | ||
283 | Move Zeroes | Easy | Algorithm | ||
284 | Peeking Iterator | Medium | Algorithm | ||
285 | Inorder Successor in BST | Medium | Algorithm | 🔒 | |
286 | Walls and Gates | Medium | Algorithm | 🔒 | |
287 | Find the Duplicate Number | Medium | Algorithm | ||
288 | Unique Word Abbreviation | Medium | Algorithm | 🔒 | |
289 | Game of Life | Medium | Algorithm | ||
290 | Word Pattern | Easy | Algorithm | ||
291 | Word Pattern II | Hard | Algorithm | 🔒 | |
292 | Nim Game | Easy | Algorithm | ||
293 | Flip Game | Easy | Algorithm | 🔒 | |
294 | Flip Game II | Medium | Algorithm | 🔒 | |
295 | Find Median from Data Stream | Hard | Algorithm | ||
296 | Best Meeting Point | Hard | Algorithm | 🔒 | |
297 | Serialize and Deserialize Binary Tree | Hard | Algorithm | ||
298 | Binary Tree Longest Consecutive Sequence | Medium | Algorithm | 🔒 | |
299 | Bulls and Cows | Medium | Algorithm | ||
300 | Longest Increasing Subsequence | Medium | Algorithm | ||
301 | Remove Invalid Parentheses | Hard | Algorithm | ||
302 | Smallest Rectangle Enclosing Black Pixels | Hard | Algorithm | 🔒 | |
303 | Range Sum Query - Immutable | Easy | Algorithm | ||
304 | Range Sum Query 2D - Immutable | Medium | Algorithm | ||
305 | Number of Islands II | Hard | Algorithm | 🔒 | |
306 | Additive Number | Medium | Algorithm | ||
307 | Range Sum Query - Mutable | Medium | Algorithm | ||
308 | Range Sum Query 2D - Mutable | Hard | Algorithm | 🔒 | |
309 | Best Time to Buy and Sell Stock with Cooldown | Medium | Algorithm | ||
310 | Minimum Height Trees | Medium | Algorithm | ||
311 | Sparse Matrix Multiplication | Medium | Algorithm | 🔒 | |
312 | Burst Balloons | Hard | Algorithm | ||
313 | Super Ugly Number | Medium | Algorithm | ||
314 | Binary Tree Vertical Order Traversal | Medium | Algorithm | 🔒 | |
315 | Count of Smaller Numbers After Self | Hard | Algorithm | ||
316 | Remove Duplicate Letters | Hard | Algorithm | ||
317 | Shortest Distance from All Buildings | Hard | Algorithm | 🔒 | |
318 | Maximum Product of Word Lengths | Medium | Algorithm | ||
319 | Bulb Switcher | Medium | Algorithm | ||
320 | Generalized Abbreviation | Medium | Algorithm | 🔒 | |
321 | Create Maximum Number | Hard | Algorithm | ||
322 | Coin Change | Medium | Algorithm | ||
323 | Number of Connected Components in an Undirected Graph | Medium | Algorithm | 🔒 | |
324 | Wiggle Sort II | Medium | Algorithm | ||
325 | Maximum Size Subarray Sum Equals k | Medium | Algorithm | 🔒 | |
326 | Power of Three | Easy | Algorithm | ||
327 | Count of Range Sum | Hard | Algorithm | ||
328 | Odd Even Linked List | Medium | Algorithm | ||
329 | Longest Increasing Path in a Matrix | Hard | Algorithm | ||
330 | Patching Array | Hard | Algorithm | ||
331 | Verify Preorder Serialization of a Binary Tree | Medium | Algorithm | ||
332 | Reconstruct Itinerary | Medium | Algorithm | ||
333 | Largest BST Subtree | Medium | Algorithm | 🔒 | |
334 | Increasing Triplet Subsequence | Medium | Algorithm | ||
335 | Self Crossing | Hard | Algorithm | ||
336 | Palindrome Pairs | Hard | Algorithm | ||
337 | House Robber III | Medium | Algorithm | ||
338 | Counting Bits | Medium | Algorithm | ||
339 | Nested List Weight Sum | Easy | Algorithm | 🔒 | |
340 | Longest Substring with At Most K Distinct Characters | Hard | Algorithm | 🔒 | |
341 | Flatten Nested List Iterator | Medium | Algorithm | ||
342 | Power of Four | Easy | Algorithm | ||
343 | Integer Break | Medium | Algorithm | ||
344 | Reverse String | Easy | Algorithm | ||
345 | Reverse Vowels of a String | Easy | Algorithm | ||
346 | Moving Average from Data Stream | Easy | Algorithm | 🔒 | |
347 | Top K Frequent Elements | Medium | Algorithm | ||
348 | Design Tic-Tac-Toe | Medium | Algorithm | 🔒 | |
349 | Intersection of Two Arrays | Easy | Algorithm | ||
350 | Intersection of Two Arrays II | Easy | Algorithm | ||
351 | Android Unlock Patterns | Medium | Algorithm | 🔒 | |
352 | Data Stream as Disjoint Intervals | Hard | Algorithm | ||
353 | Design Snake Game | Medium | Algorithm | 🔒 | |
354 | Russian Doll Envelopes | Hard | Algorithm | ||
355 | Design Twitter | Medium | Algorithm | ||
356 | Line Reflection | Medium | Algorithm | 🔒 | |
357 | Count Numbers with Unique Digits | Medium | Algorithm | ||
358 | Rearrange String k Distance Apart | Hard | Algorithm | 🔒 | |
359 | Logger Rate Limiter | Easy | Algorithm | 🔒 | |
360 | Sort Transformed Array | Medium | Algorithm | 🔒 | |
361 | Bomb Enemy | Medium | Algorithm | 🔒 | |
362 | Design Hit Counter | Medium | Algorithm | 🔒 | |
363 | Max Sum of Rectangle No Larger Than K | Hard | Algorithm | ||
364 | Nested List Weight Sum II | Medium | Algorithm | 🔒 | |
365 | Water and Jug Problem | Medium | Algorithm | ||
366 | Find Leaves of Binary Tree | Medium | Algorithm | 🔒 | |
367 | Valid Perfect Square | Easy | Algorithm | ||
368 | Largest Divisible Subset | Medium | Algorithm | ||
369 | Plus One Linked List | Medium | Algorithm | 🔒 | |
370 | Range Addition | Medium | Algorithm | 🔒 | |
371 | Sum of Two Integers | Easy | Algorithm | ||
372 | Super Pow | Medium | Algorithm | ||
373 | Find K Pairs with Smallest Sums | Medium | Algorithm | ||
374 | Guess Number Higher or Lower | Easy | Algorithm | ||
375 | Guess Number Higher or Lower II | Medium | Algorithm | ||
376 | Wiggle Subsequence | Medium | Algorithm | ||
377 | Combination Sum IV | Medium | Algorithm | ||
378 | Kth Smallest Element in a Sorted Matrix | Medium | Algorithm | ||
379 | Design Phone Directory | Medium | Algorithm | 🔒 | |
380 | Insert Delete GetRandom O(1) | Medium | Algorithm | ||
381 | Insert Delete GetRandom O(1) - Duplicates allowed | Hard | Algorithm | ||
382 | Linked List Random Node | Medium | Algorithm | ||
383 | Ransom Note | Easy | Algorithm | ||
384 | Shuffle an Array | Medium | Algorithm | ||
385 | Mini Parser | Medium | Algorithm | ||
386 | Lexicographical Numbers | Medium | Algorithm | ||
387 | First Unique Character in a String | Easy | Algorithm | ||
388 | Longest Absolute File Path | Medium | Algorithm | ||
389 | Find the Difference | Easy | Algorithm | ||
390 | Elimination Game | Medium | Algorithm | ||
391 | Perfect Rectangle | Hard | Algorithm | ||
392 | Is Subsequence | Medium | Algorithm | ||
393 | UTF-8 Validation | Medium | Algorithm | ||
394 | Decode String | Medium | Algorithm | ||
395 | Longest Substring with At Least K Repeating Characters | Medium | Algorithm | ||
396 | Rotate Function | Medium | Algorithm | ||
397 | Integer Replacement | Medium | Algorithm | ||
398 | Random Pick Index | Medium | Algorithm | ||
399 | Evaluate Division | Medium | Algorithm | ||
400 | Nth Digit | Easy | Algorithm | ||
401 | Binary Watch | Easy | Algorithm | ||
402 | Remove K Digits | Medium | Algorithm | ||
403 | Frog Jump | Hard | Algorithm | ||
404 | Sum of Left Leaves | Easy | Algorithm | ||
405 | Convert a Number to Hexadecimal | Easy | Algorithm | ||
406 | Queue Reconstruction by Height | Medium | Algorithm | ||
407 | Trapping Rain Water II | Hard | Algorithm | ||
408 | Valid Word Abbreviation | Easy | Algorithm | 🔒 | |
409 | Longest Palindrome | Easy | Algorithm | ||
410 | Split Array Largest Sum | Hard | Algorithm | ||
411 | Minimum Unique Word Abbreviation | Hard | Algorithm | 🔒 | |
412 | Fizz Buzz | Easy | Algorithm | ||
413 | Arithmetic Slices | Medium | Algorithm | ||
414 | Third Maximum Number | Easy | Algorithm | ||
415 | Add Strings | Easy | Algorithm | ||
416 | Partition Equal Subset Sum | Medium | Algorithm | ||
417 | Pacific Atlantic Water Flow | Medium | Algorithm | ||
418 | Sentence Screen Fitting | Medium | Algorithm | 🔒 | |
419 | Battleships in a Board | Medium | Algorithm | ||
420 | Strong Password Checker | Hard | Algorithm | ||
421 | Maximum XOR of Two Numbers in an Array | Medium | Algorithm | ||
422 | Valid Word Square | Easy | Algorithm | 🔒 | |
423 | Reconstruct Original Digits from English | Medium | Algorithm | ||
424 | Longest Repeating Character Replacement | Medium | Algorithm | ||
425 | Word Squares | Hard | Algorithm | 🔒 | |
426 | Convert Binary Search Tree to Sorted Doubly Linked List | Medium | Algorithm | 🔒 | |
427 | Construct Quad Tree | Easy | Algorithm | ||
428 | Serialize and Deserialize N-ary Tree | Hard | Algorithm | 🔒 | |
429 | N-ary Tree Level Order Traversal | Easy | Algorithm | ||
430 | Flatten a Multilevel Doubly Linked List | Medium | Algorithm | ||
431 | Encode N-ary Tree to Binary Tree | Hard | Algorithm | 🔒 | |
432 | All O`one Data Structure | Hard | Algorithm | ||
433 | Minimum Genetic Mutation | Medium | Algorithm | ||
434 | Number of Segments in a String | Easy | Algorithm | ||
435 | Non-overlapping Intervals | Medium | Algorithm | ||
436 | Find Right Interval | Medium | Algorithm | ||
437 | Path Sum III | Easy | Algorithm | ||
438 | Find All Anagrams in a String | Easy | Algorithm | ||
439 | Ternary Expression Parser | Medium | Algorithm | 🔒 | |
440 | K-th Smallest in Lexicographical Order | Hard | Algorithm | ||
441 | Arranging Coins | Easy | Algorithm | ||
442 | Find All Duplicates in an Array | Medium | Algorithm | ||
443 | String Compression | Easy | Algorithm | ||
444 | Sequence Reconstruction | Medium | Algorithm | 🔒 | |
445 | Add Two Numbers II | Medium | Algorithm | ||
446 | Arithmetic Slices II - Subsequence | Hard | Algorithm | ||
447 | Number of Boomerangs | Easy | Algorithm | ||
448 | Find All Numbers Disappeared in an Array | Easy | Algorithm | ||
449 | Serialize and Deserialize BST | Medium | Algorithm | ||
450 | Delete Node in a BST | Medium | Algorithm | ||
451 | Sort Characters By Frequency | Medium | Algorithm | ||
452 | Minimum Number of Arrows to Burst Balloons | Medium | Algorithm | ||
453 | Minimum Moves to Equal Array Elements | Easy | Algorithm | ||
454 | 4Sum II | Medium | Algorithm | ||
455 | Assign Cookies | Easy | Algorithm | ||
456 | 132 Pattern | Medium | Algorithm | ||
457 | Circular Array Loop | Medium | Algorithm | ||
458 | Poor Pigs | Easy | Algorithm | ||
459 | Repeated Substring Pattern | Easy | Algorithm | ||
460 | LFU Cache | Hard | Algorithm | ||
461 | Hamming Distance | Easy | Algorithm | ||
462 | Minimum Moves to Equal Array Elements II | Medium | Algorithm | ||
463 | Island Perimeter | Easy | Algorithm | ||
464 | Can I Win | Medium | Algorithm | ||
465 | Optimal Account Balancing | Hard | Algorithm | 🔒 | |
466 | Count The Repetitions | Hard | Algorithm | ||
467 | Unique Substrings in Wraparound String | Medium | Algorithm | ||
468 | Validate IP Address | Medium | Algorithm | ||
469 | Convex Polygon | Medium | Algorithm | 🔒 | |
470 | Implement Rand10() Using Rand7() | Medium | Algorithm | ||
471 | Encode String with Shortest Length | Hard | Algorithm | 🔒 | |
472 | Concatenated Words | Hard | Algorithm | ||
473 | Matchsticks to Square | Medium | Algorithm | ||
474 | Ones and Zeroes | Medium | Algorithm | ||
475 | Heaters | Easy | Algorithm | ||
476 | Number Complement | Easy | Algorithm | ||
477 | Total Hamming Distance | Medium | Algorithm | ||
478 | Generate Random Point in a Circle | Medium | Algorithm | ||
479 | Largest Palindrome Product | Easy | Algorithm | ||
480 | Sliding Window Median | Hard | Algorithm | ||
481 | Magical String | Medium | Algorithm | ||
482 | License Key Formatting | Easy | Algorithm | ||
483 | Smallest Good Base | Hard | Algorithm | ||
484 | Find Permutation | Medium | Algorithm | 🔒 | |
485 | Max Consecutive Ones | Easy | Algorithm | ||
486 | Predict the Winner | Medium | Algorithm | ||
487 | Max Consecutive Ones II | Medium | Algorithm | 🔒 | |
488 | Zuma Game | Hard | Algorithm | ||
489 | Robot Room Cleaner | Hard | Algorithm | 🔒 | |
490 | The Maze | Medium | Algorithm | 🔒 | |
491 | Increasing Subsequences | Medium | Algorithm | ||
492 | Construct the Rectangle | Easy | Algorithm | ||
493 | Reverse Pairs | Hard | Algorithm | ||
494 | Target Sum | Medium | Algorithm | ||
495 | Teemo Attacking | Medium | Algorithm | ||
496 | Next Greater Element I | Easy | Algorithm | ||
497 | Random Point in Non-overlapping Rectangles | Medium | Algorithm | ||
498 | Diagonal Traverse | Medium | Algorithm | ||
499 | The Maze III | Hard | Algorithm | 🔒 | |
500 | Keyboard Row | Easy | Algorithm | ||
501 | Find Mode in Binary Search Tree | Easy | Algorithm | ||
502 | IPO | Hard | Algorithm | ||
503 | Next Greater Element II | Medium | Algorithm | ||
504 | Base 7 | Easy | Algorithm | ||
505 | The Maze II | Medium | Algorithm | 🔒 | |
506 | Relative Ranks | Easy | Algorithm | ||
507 | Perfect Number | Easy | Algorithm | ||
508 | Most Frequent Subtree Sum | Medium | Algorithm | ||
509 | Fibonacci Number | Easy | Algorithm | ||
513 | Find Bottom Left Tree Value | Medium | Algorithm | ||
514 | Freedom Trail | Hard | Algorithm | ||
515 | Find Largest Value in Each Tree Row | Medium | Algorithm | ||
516 | Longest Palindromic Subsequence | Medium | Algorithm | ||
517 | Super Washing Machines | Hard | Algorithm | ||
518 | Coin Change 2 | Medium | Algorithm | ||
519 | Random Flip Matrix | Medium | Algorithm | ||
520 | Detect Capital | Easy | Algorithm | ||
521 | Longest Uncommon Subsequence I | Easy | Algorithm | ||
522 | Longest Uncommon Subsequence II | Medium | Algorithm | ||
523 | Continuous Subarray Sum | Medium | Algorithm | ||
524 | Longest Word in Dictionary through Deleting | Medium | Algorithm | ||
525 | Contiguous Array | Medium | Algorithm | ||
526 | Beautiful Arrangement | Medium | Algorithm | ||
527 | Word Abbreviation | Hard | Algorithm | 🔒 | |
528 | Random Pick with Weight | Medium | Algorithm | ||
529 | Minesweeper | Medium | Algorithm | ||
530 | Minimum Absolute Difference in BST | Easy | Algorithm | ||
531 | Lonely Pixel I | Medium | Algorithm | 🔒 | |
532 | K-diff Pairs in an Array | Easy | Algorithm | ||
533 | Lonely Pixel II | Medium | Algorithm | 🔒 | |
535 | Encode and Decode TinyURL | Medium | Algorithm | ||
536 | Construct Binary Tree from String | Medium | Algorithm | 🔒 | |
537 | Complex Number Multiplication | Medium | Algorithm | ||
538 | Convert BST to Greater Tree | Easy | Algorithm | ||
539 | Minimum Time Difference | Medium | Algorithm | ||
540 | Single Element in a Sorted Array | Medium | Algorithm | ||
541 | Reverse String II | Easy | Algorithm | ||
542 | 01 Matrix | Medium | Algorithm | ||
543 | Diameter of Binary Tree | Easy | Algorithm | ||
544 | Output Contest Matches | Medium | Algorithm | 🔒 | |
545 | Boundary of Binary Tree | Medium | Algorithm | 🔒 | |
546 | Remove Boxes | Hard | Algorithm | ||
547 | Friend Circles | Medium | Algorithm | ||
548 | Split Array with Equal Sum | Medium | Algorithm | 🔒 | |
549 | Binary Tree Longest Consecutive Sequence II | Medium | Algorithm | 🔒 | |
551 | Student Attendance Record I | Easy | Algorithm | ||
552 | Student Attendance Record II | Hard | Algorithm | ||
553 | Optimal Division | Medium | Algorithm | ||
554 | Brick Wall | Medium | Algorithm | ||
555 | Split Concatenated Strings | Medium | Algorithm | 🔒 | |
556 | Next Greater Element III | Medium | Algorithm | ||
557 | Reverse Words in a String III | Easy | Algorithm | ||
558 | Quad Tree Intersection | Easy | Algorithm | ||
559 | Maximum Depth of N-ary Tree | Easy | Algorithm | ||
560 | Subarray Sum Equals K | Medium | Algorithm | ||
561 | Array Partition I | Easy | Algorithm | ||
562 | Longest Line of Consecutive One in Matrix | Medium | Algorithm | 🔒 | |
563 | Binary Tree Tilt | Easy | Algorithm | ||
564 | Find the Closest Palindrome | Hard | Algorithm | ||
565 | Array Nesting | Medium | Algorithm | ||
566 | Reshape the Matrix | Easy | Algorithm | ||
567 | Permutation in String | Medium | Algorithm | ||
568 | Maximum Vacation Days | Hard | Algorithm | 🔒 | |
569 | Median Employee Salary | Hard | Database | 🔒 | |
570 | Managers with at Least 5 Direct Reports | Medium | Database | 🔒 | |
571 | Find Median Given Frequency of Numbers | Hard | Database | 🔒 | |
572 | Subtree of Another Tree | Easy | Algorithm | ||
573 | Squirrel Simulation | Medium | Algorithm | 🔒 | |
574 | Winning Candidate | Medium | Database | 🔒 | |
575 | Distribute Candies | Easy | Algorithm | ||
576 | Out of Boundary Paths | Medium | Algorithm | ||
577 | Employee Bonus | Easy | Database | 🔒 | |
578 | Get Highest Answer Rate Question | Medium | Database | 🔒 | |
579 | Find Cumulative Salary of an Employee | Hard | Database | 🔒 | |
580 | Count Student Number in Departments | Medium | Database | 🔒 | |
581 | Shortest Unsorted Continuous Subarray | Easy | Algorithm | ||
582 | Kill Process | Medium | Algorithm | 🔒 | |
583 | Delete Operation for Two Strings | Medium | Algorithm | ||
584 | Find Customer Referee | Easy | Database | 🔒 | |
585 | Investments in 2016 | Medium | Database | 🔒 | |
586 | Customer Placing the Largest Number of Orders | Easy | Database | 🔒 | |
587 | Erect the Fence | Hard | Algorithm | ||
588 | Design In-Memory File System | Hard | Algorithm | 🔒 | |
589 | N-ary Tree Preorder Traversal | Easy | Algorithm | ||
590 | N-ary Tree Postorder Traversal | Easy | Algorithm | ||
591 | Tag Validator | Hard | Algorithm | ||
592 | Fraction Addition and Subtraction | Medium | Algorithm | ||
593 | Valid Square | Medium | Algorithm | ||
594 | Longest Harmonious Subsequence | Easy | Algorithm | ||
595 | Big Countries | Easy | Database | ||
596 | Classes More Than 5 Students | Easy | Database | ||
597 | Friend Requests I: Overall Acceptance Rate | Easy | Database | 🔒 | |
598 | Range Addition II | Easy | Algorithm | ||
599 | Minimum Index Sum of Two Lists | Easy | Algorithm | ||
600 | Non-negative Integers without Consecutive Ones | Hard | Algorithm | ||
601 | Human Traffic of Stadium | Hard | Database | ||
602 | Friend Requests II: Who Has the Most Friends | Medium | Database | 🔒 | |
603 | Consecutive Available Seats | Easy | Database | 🔒 | |
604 | Design Compressed String Iterator | Easy | Algorithm | 🔒 | |
605 | Can Place Flowers | Easy | Algorithm | ||
606 | Construct String from Binary Tree | Easy | Algorithm | ||
607 | Sales Person | Easy | Database | 🔒 | |
608 | Tree Node | Medium | Database | 🔒 | |
609 | Find Duplicate File in System | Medium | Algorithm | ||
610 | Triangle Judgement | Easy | Database | 🔒 | |
611 | Valid Triangle Number | Medium | Algorithm | ||
612 | Shortest Distance in a Plane | Medium | Database | 🔒 | |
613 | Shortest Distance in a Line | Easy | Database | 🔒 | |
614 | Second Degree Follower | Medium | Database | 🔒 | |
615 | Average Salary: Departments VS Company | Hard | Database | 🔒 | |
616 | Add Bold Tag in String | Medium | Algorithm | 🔒 | |
617 | Merge Two Binary Trees | Easy | Algorithm | ||
618 | Students Report By Geography | Hard | Database | 🔒 | |
619 | Biggest Single Number | Easy | Database | 🔒 | |
620 | Not Boring Movies | Easy | Database | ||
621 | Task Scheduler | Medium | Algorithm | ||
622 | Design Circular Queue | Medium | Algorithm | ||
623 | Add One Row to Tree | Medium | Algorithm | ||
624 | Maximum Distance in Arrays | Easy | Algorithm | 🔒 | |
625 | Minimum Factorization | Medium | Algorithm | 🔒 | |
626 | Exchange Seats | Medium | Database | ||
627 | Swap Salary | Easy | Database | ||
628 | Maximum Product of Three Numbers | Easy | Algorithm | ||
629 | K Inverse Pairs Array | Hard | Algorithm | ||
630 | Course Schedule III | Hard | Algorithm | ||
631 | Design Excel Sum Formula | Hard | Algorithm | 🔒 | |
632 | Smallest Range | Hard | Algorithm | ||
633 | Sum of Square Numbers | Easy | Algorithm | ||
634 | Find the Derangement of An Array | Medium | Algorithm | 🔒 | |
635 | Design Log Storage System | Medium | Algorithm | 🔒 | |
636 | Exclusive Time of Functions | Medium | Algorithm | ||
637 | Average of Levels in Binary Tree | Easy | Algorithm | ||
638 | Shopping Offers | Medium | Algorithm | ||
639 | Decode Ways II | Hard | Algorithm | ||
640 | Solve the Equation | Medium | Algorithm | ||
641 | Design Circular Deque | Medium | Algorithm | ||
642 | Design Search Autocomplete System | Hard | Algorithm | 🔒 | |
643 | Maximum Average Subarray I | Easy | Algorithm | ||
644 | Maximum Average Subarray II | Hard | Algorithm | 🔒 | |
645 | Set Mismatch | Easy | Algorithm | ||
646 | Maximum Length of Pair Chain | Medium | Algorithm | ||
647 | Palindromic Substrings | Medium | Algorithm | ||
648 | Replace Words | Medium | Algorithm | ||
649 | Dota2 Senate | Medium | Algorithm | ||
650 | 2 Keys Keyboard | Medium | Algorithm | ||
651 | 4 Keys Keyboard | Medium | Algorithm | 🔒 | |
652 | Find Duplicate Subtrees | Medium | Algorithm | ||
653 | Two Sum IV - Input is a BST | Easy | Algorithm | ||
654 | Maximum Binary Tree | Medium | Algorithm | ||
655 | Print Binary Tree | Medium | Algorithm | ||
656 | Coin Path | Hard | Algorithm | 🔒 | |
657 | Robot Return to Origin | Easy | Algorithm | ||
658 | Find K Closest Elements | Medium | Algorithm | ||
659 | Split Array into Consecutive Subsequences | Medium | Algorithm | ||
660 | Remove 9 | Hard | Algorithm | 🔒 | |
661 | Image Smoother | Easy | Algorithm | ||
662 | Maximum Width of Binary Tree | Medium | Algorithm | ||
663 | Equal Tree Partition | Medium | Algorithm | 🔒 | |
664 | Strange Printer | Hard | Algorithm | ||
665 | Non-decreasing Array | Easy | Algorithm | ||
666 | Path Sum IV | Medium | Algorithm | 🔒 | |
667 | Beautiful Arrangement II | Medium | Algorithm | ||
668 | Kth Smallest Number in Multiplication Table | Hard | Algorithm | ||
669 | Trim a Binary Search Tree | Easy | Algorithm | ||
670 | Maximum Swap | Medium | Algorithm | ||
671 | Second Minimum Node In a Binary Tree | Easy | Algorithm | ||
672 | Bulb Switcher II | Medium | Algorithm | ||
673 | Number of Longest Increasing Subsequence | Medium | Algorithm | ||
674 | Longest Continuous Increasing Subsequence | Easy | Algorithm | ||
675 | Cut Off Trees for Golf Event | Hard | Algorithm | ||
676 | Implement Magic Dictionary | Medium | Algorithm | ||
677 | Map Sum Pairs | Medium | Algorithm | ||
678 | Valid Parenthesis String | Medium | Algorithm | ||
679 | 24 Game | Hard | Algorithm | ||
680 | Valid Palindrome II | Easy | Algorithm | ||
681 | Next Closest Time | Medium | Algorithm | 🔒 | |
682 | Baseball Game | Easy | Algorithm | ||
683 | K Empty Slots | Hard | Algorithm | 🔒 | |
684 | Redundant Connection | Medium | Algorithm | ||
685 | Redundant Connection II | Hard | Algorithm | ||
686 | Repeated String Match | Easy | Algorithm | ||
687 | Longest Univalue Path | Easy | Algorithm | ||
688 | Knight Probability in Chessboard | Medium | Algorithm | ||
689 | Maximum Sum of 3 Non-Overlapping Subarrays | Hard | Algorithm | ||
690 | Employee Importance | Easy | Algorithm | ||
691 | Stickers to Spell Word | Hard | Algorithm | ||
692 | Top K Frequent Words | Medium | Algorithm | ||
693 | Binary Number with Alternating Bits | Easy | Algorithm | ||
694 | Number of Distinct Islands | Medium | Algorithm | 🔒 | |
695 | Max Area of Island | Medium | Algorithm | ||
696 | Count Binary Substrings | Easy | Algorithm | ||
697 | Degree of an Array | Easy | Algorithm | ||
698 | Partition to K Equal Sum Subsets | Medium | Algorithm | ||
699 | Falling Squares | Hard | Algorithm | ||
700 | Search in a Binary Search Tree | Easy | Algorithm | ||
701 | Insert into a Binary Search Tree | Medium | Algorithm | ||
702 | Search in a Sorted Array of Unknown Size | Medium | Algorithm | 🔒 | |
703 | Kth Largest Element in a Stream | Easy | Algorithm | ||
704 | Binary Search | Easy | Algorithm | ||
705 | Design HashSet | Easy | Algorithm | ||
706 | Design HashMap | Easy | Algorithm | ||
707 | Design Linked List | Easy | Algorithm | ||
708 | Insert into a Cyclic Sorted List | Medium | Algorithm | 🔒 | |
709 | To Lower Case | Easy | Algorithm | ||
710 | Random Pick with Blacklist | Hard | Algorithm | ||
711 | Number of Distinct Islands II | Hard | Algorithm | 🔒 | |
712 | Minimum ASCII Delete Sum for Two Strings | Medium | Algorithm | ||
713 | Subarray Product Less Than K | Medium | Algorithm | ||
714 | Best Time to Buy and Sell Stock with Transaction Fee | Medium | Algorithm | ||
715 | Range Module | Hard | Algorithm | ||
716 | Max Stack | Easy | Algorithm | 🔒 | |
717 | 1-bit and 2-bit Characters | Easy | Algorithm | ||
718 | Maximum Length of Repeated Subarray | Medium | Algorithm | ||
719 | Find K-th Smallest Pair Distance | Hard | Algorithm | ||
720 | Longest Word in Dictionary | Easy | Algorithm | ||
721 | Accounts Merge | Medium | Algorithm | ||
722 | Remove Comments | Medium | Algorithm | ||
723 | Candy Crush | Medium | Algorithm | 🔒 | |
724 | Find Pivot Index | Easy | Algorithm | ||
725 | Split Linked List in Parts | Medium | Algorithm | ||
726 | Number of Atoms | Hard | Algorithm | ||
727 | Minimum Window Subsequence | Hard | Algorithm | 🔒 | |
728 | Self Dividing Numbers | Easy | Algorithm | ||
729 | My Calendar I | Medium | Algorithm | ||
730 | Count Different Palindromic Subsequences | Hard | Algorithm | ||
731 | My Calendar II | Medium | Algorithm | ||
732 | My Calendar III | Hard | Algorithm | ||
733 | Flood Fill | Easy | Algorithm | ||
734 | Sentence Similarity | Easy | Algorithm | 🔒 | |
735 | Asteroid Collision | Medium | Algorithm | ||
736 | Parse Lisp Expression | Hard | Algorithm | ||
737 | Sentence Similarity II | Medium | Algorithm | 🔒 | |
738 | Monotone Increasing Digits | Medium | Algorithm | ||
739 | Daily Temperatures | Medium | Algorithm | ||
740 | Delete and Earn | Medium | Algorithm | ||
741 | Cherry Pickup | Hard | Algorithm | ||
742 | Closest Leaf in a Binary Tree | Medium | Algorithm | 🔒 | |
743 | Network Delay Time | Easy | Algorithm | ||
744 | Find Smallest Letter Greater Than Target | Easy | Algorithm | ||
745 | Prefix and Suffix Search | Hard | Algorithm | ||
746 | Min Cost Climbing Stairs | Easy | Algorithm | ||
747 | Largest Number At Least Twice of Others | Easy | Algorithm | ||
748 | Shortest Completing Word | Easy | Algorithm | ||
749 | Contain Virus | Hard | Algorithm | ||
750 | Number Of Corner Rectangles | Medium | Algorithm | 🔒 | |
751 | IP to CIDR | Easy | Algorithm | 🔒 | |
752 | Open the Lock | Medium | Algorithm | ||
753 | Cracking the Safe | Hard | Algorithm | ||
754 | Reach a Number | Easy | Algorithm | ||
755 | Pour Water | Medium | Algorithm | 🔒 | |
756 | Pyramid Transition Matrix | Medium | Algorithm | ||
757 | Set Intersection Size At Least Two | Hard | Algorithm | ||
758 | Bold Words in String | Easy | Algorithm | 🔒 | |
759 | Employee Free Time | Hard | Algorithm | 🔒 | |
760 | Find Anagram Mappings | Easy | Algorithm | 🔒 | |
761 | Special Binary String | Hard | Algorithm | ||
762 | Prime Number of Set Bits in Binary Representation | Easy | Algorithm | ||
763 | Partition Labels | Medium | Algorithm | ||
764 | Largest Plus Sign | Medium | Algorithm | ||
765 | Couples Holding Hands | Hard | Algorithm | ||
766 | Toeplitz Matrix | Easy | Algorithm | ||
767 | Reorganize String | Medium | Algorithm | ||
768 | Max Chunks To Make Sorted II | Hard | Algorithm | ||
769 | Max Chunks To Make Sorted | Medium | Algorithm | ||
770 | Basic Calculator IV | Hard | Algorithm | ||
771 | Jewels and Stones | Easy | Algorithm | ||
772 | Basic Calculator III | Hard | Algorithm | 🔒 | |
773 | Sliding Puzzle | Hard | Algorithm | ||
774 | Minimize Max Distance to Gas Station | Hard | Algorithm | 🔒 | |
775 | Global and Local Inversions | Medium | Algorithm | ||
776 | Split BST | Medium | Algorithm | 🔒 | |
777 | Swap Adjacent in LR String | Medium | Algorithm | ||
778 | Swim in Rising Water | Hard | Algorithm | ||
779 | K-th Symbol in Grammar | Medium | Algorithm | ||
780 | Reaching Points | Hard | Algorithm | ||
781 | Rabbits in Forest | Medium | Algorithm | ||
782 | Transform to Chessboard | Hard | Algorithm | ||
783 | Minimum Distance Between BST Nodes | Easy | Algorithm | ||
784 | Letter Case Permutation | Easy | Algorithm | ||
785 | Is Graph Bipartite? | Medium | Algorithm | ||
786 | K-th Smallest Prime Fraction | Hard | Algorithm | ||
787 | Cheapest Flights Within K Stops | Medium | Algorithm | ||
788 | Rotated Digits | Easy | Algorithm | ||
789 | Escape The Ghosts | Medium | Algorithm | ||
790 | Domino and Tromino Tiling | Medium | Algorithm | ||
791 | Custom Sort String | Medium | Algorithm | ||
792 | Number of Matching Subsequences | Medium | Algorithm | ||
793 | Preimage Size of Factorial Zeroes Function | Hard | Algorithm | ||
794 | Valid Tic-Tac-Toe State | Medium | Algorithm | ||
795 | Number of Subarrays with Bounded Maximum | Medium | Algorithm | ||
796 | Rotate String | Easy | Algorithm | ||
797 | All Paths From Source to Target | Medium | Algorithm | ||
798 | Smallest Rotation with Highest Score | Hard | Algorithm | ||
799 | Champagne Tower | Medium | Algorithm | ||
800 | Similar RGB Color | Easy | Algorithm | 🔒 | |
801 | Minimum Swaps To Make Sequences Increasing | Medium | Algorithm | ||
802 | Find Eventual Safe States | Medium | Algorithm | ||
803 | Bricks Falling When Hit | Hard | Algorithm | ||
804 | Unique Morse Code Words | Easy | Algorithm | ||
805 | Split Array With Same Average | Hard | Algorithm | ||
806 | Number of Lines To Write String | Easy | Algorithm | ||
807 | Max Increase to Keep City Skyline | Medium | Algorithm | ||
808 | Soup Servings | Medium | Algorithm | ||
809 | Expressive Words | Medium | Algorithm | ||
810 | Chalkboard XOR Game | Hard | Algorithm | ||
811 | Subdomain Visit Count | Easy | Algorithm | ||
812 | Largest Triangle Area | Easy | Algorithm | ||
813 | Largest Sum of Averages | Medium | Algorithm | ||
814 | Binary Tree Pruning | Medium | Algorithm | ||
815 | Bus Routes | Hard | Algorithm | ||
816 | Ambiguous Coordinates | Medium | Algorithm | ||
817 | Linked List Components | Medium | Algorithm | ||
818 | Race Car | Hard | Algorithm | ||
819 | Most Common Word | Easy | Algorithm | ||
820 | Short Encoding of Words | Medium | Algorithm | ||
821 | Shortest Distance to a Character | Easy | Algorithm | ||
822 | Card Flipping Game | Medium | Algorithm | ||
823 | Binary Trees With Factors | Medium | Algorithm | ||
824 | Goat Latin | Easy | Algorithm | ||
825 | Friends Of Appropriate Ages | Medium | Algorithm | ||
826 | Most Profit Assigning Work | Medium | Algorithm | ||
827 | Making A Large Island | Hard | Algorithm | ||
828 | Unique Letter String | Hard | Algorithm | ||
829 | Consecutive Numbers Sum | Hard | Algorithm | ||
830 | Positions of Large Groups | Easy | Algorithm | ||
831 | Masking Personal Information | Medium | Algorithm | ||
832 | Flipping an Image | Easy | Algorithm | ||
833 | Find And Replace in String | Medium | Algorithm | ||
834 | Sum of Distances in Tree | Hard | Algorithm | ||
835 | Image Overlap | Medium | Algorithm | ||
836 | Rectangle Overlap | Easy | Algorithm | ||
837 | New 21 Game | Medium | Algorithm | ||
838 | Push Dominoes | Medium | Algorithm | ||
839 | Similar String Groups | Hard | Algorithm | ||
840 | Magic Squares In Grid | Easy | Algorithm | ||
841 | Keys and Rooms | Medium | Algorithm | ||
842 | Split Array into Fibonacci Sequence | Medium | Algorithm | ||
843 | Guess the Word | Hard | Algorithm | ||
844 | Backspace String Compare | Easy | Algorithm | ||
845 | Longest Mountain in Array | Medium | Algorithm | ||
846 | Hand of Straights | Medium | Algorithm | ||
847 | Shortest Path Visiting All Nodes | Hard | Algorithm | ||
848 | Shifting Letters | Medium | Algorithm | ||
849 | Maximize Distance to Closest Person | Easy | Algorithm | ||
850 | Rectangle Area II | Hard | Algorithm | ||
851 | Loud and Rich | Medium | Algorithm | ||
852 | Peak Index in a Mountain Array | Easy | Algorithm | ||
853 | Car Fleet | Medium | Algorithm | ||
854 | K-Similar Strings | Hard | Algorithm | ||
855 | Exam Room | Medium | Algorithm | ||
856 | Score of Parentheses | Medium | Algorithm | ||
857 | Minimum Cost to Hire K Workers | Hard | Algorithm | ||
858 | Mirror Reflection | Medium | Algorithm | ||
859 | Buddy Strings | Easy | Algorithm | ||
860 | Lemonade Change | Easy | Algorithm | ||
861 | Score After Flipping Matrix | Medium | Algorithm | ||
862 | Shortest Subarray with Sum at Least K | Hard | Algorithm | ||
863 | All Nodes Distance K in Binary Tree | Medium | Algorithm | ||
864 | Shortest Path to Get All Keys | Hard | Algorithm | ||
865 | Smallest Subtree with all the Deepest Nodes | Medium | Algorithm | ||
866 | Prime Palindrome | Medium | Algorithm | ||
867 | Transpose Matrix | Easy | Algorithm | ||
868 | Binary Gap | Easy | Algorithm | ||
869 | Reordered Power of 2 | Medium | Algorithm | ||
870 | Advantage Shuffle | Medium | Algorithm | ||
871 | Minimum Number of Refueling Stops | Hard | Algorithm | ||
872 | Leaf-Similar Trees | Easy | Algorithm | ||
873 | Length of Longest Fibonacci Subsequence | Medium | Algorithm | ||
874 | Walking Robot Simulation | Easy | Algorithm | ||
875 | Koko Eating Bananas | Medium | Algorithm | ||
876 | Middle of the Linked List | Easy | Algorithm | ||
877 | Stone Game | Medium | Algorithm | ||
878 | Nth Magical Number | Hard | Algorithm | ||
879 | Profitable Schemes | Hard | Algorithm | ||
880 | Decoded String at Index | Medium | Algorithm | ||
881 | Boats to Save People | Medium | Algorithm | ||
882 | Reachable Nodes In Subdivided Graph | Hard | Algorithm | ||
883 | Projection Area of 3D Shapes | Easy | Algorithm | ||
884 | Uncommon Words from Two Sentences | Easy | Algorithm | ||
885 | Spiral Matrix III | Medium | Algorithm | ||
886 | Possible Bipartition | Medium | Algorithm | ||
887 | Super Egg Drop | Hard | Algorithm | ||
888 | Fair Candy Swap | Easy | Algorithm | ||
889 | Construct Binary Tree from Preorder and Postorder Traversal | Medium | Algorithm | ||
890 | Find and Replace Pattern | Medium | Algorithm | ||
891 | Sum of Subsequence Widths | Hard | Algorithm | ||
892 | Surface Area of 3D Shapes | Easy | Algorithm | ||
893 | Groups of Special-Equivalent Strings | Easy | Algorithm | ||
894 | All Possible Full Binary Trees | Medium | Algorithm | ||
895 | Maximum Frequency Stack | Hard | Algorithm | ||
896 | Monotonic Array | Easy | Algorithm | ||
897 | Increasing Order Search Tree | Easy | Algorithm | ||
898 | Bitwise ORs of Subarrays | Medium | Algorithm | ||
899 | Orderly Queue | Hard | Algorithm | ||
900 | RLE Iterator | Medium | Algorithm | ||
901 | Online Stock Span | Medium | Algorithm | ||
902 | Numbers At Most N Given Digit Set | Hard | Algorithm | ||
903 | Valid Permutations for DI Sequence | Hard | Algorithm | ||
904 | Fruit Into Baskets | Medium | Algorithm | ||
905 | Sort Array By Parity | Easy | Algorithm | ||
906 | Super Palindromes | Hard | Algorithm | ||
907 | Sum of Subarray Minimums | Medium | Algorithm | ||
908 | Smallest Range I | Easy | Algorithm | ||
909 | Snakes and Ladders | Medium | Algorithm | ||
910 | Smallest Range II | Medium | Algorithm | ||
911 | Online Election | Medium | Algorithm | ||
913 | Cat and Mouse | Hard | Algorithm | ||
914 | X of a Kind in a Deck of Cards | Easy | Algorithm | ||
915 | Partition Array into Disjoint Intervals | Medium | Algorithm | ||
916 | Word Subsets | Medium | Algorithm | ||
917 | Reverse Only Letters | Easy | Algorithm | ||
918 | Maximum Sum Circular Subarray | Medium | Algorithm | ||
919 | Complete Binary Tree Inserter | Medium | Algorithm | ||
920 | Number of Music Playlists | Hard | Algorithm | ||
921 | Minimum Add to Make Parentheses Valid | Medium | Algorithm | ||
922 | Sort Array By Parity II | Easy | Algorithm | ||
923 | 3Sum With Multiplicity | Medium | Algorithm | ||
924 | Minimize Malware Spread | Hard | Algorithm | ||
925 | Long Pressed Name | Easy | Algorithm | ||
926 | Flip String to Monotone Increasing | Medium | Algorithm | ||
927 | Three Equal Parts | Hard | Algorithm | ||
928 | Minimize Malware Spread II | Hard | Algorithm | ||
929 | Unique Email Addresses | Easy | Algorithm | ||
930 | Binary Subarrays With Sum | Medium | Algorithm | ||
931 | Minimum Falling Path Sum | Medium | Algorithm | ||
932 | Beautiful Array | Medium | Algorithm | ||
933 | Number of Recent Calls | Easy | Algorithm | ||
934 | Shortest Bridge | Medium | Algorithm | ||
935 | Knight Dialer | Medium | Algorithm | ||
936 | Stamping The Sequence | Hard | Algorithm | ||
937 | Reorder Log Files | Easy | Algorithm | ||
938 | Range Sum of BST | Medium | Algorithm | ||
939 | Minimum Area Rectangle | Medium | Algorithm | ||
940 | Distinct Subsequences II | Hard | Algorithm | ||
941 | Valid Mountain Array | Easy | Algorithm | ||
942 | DI String Match | Easy | Algorithm | ||
943 | Find the Shortest Superstring | Hard | Algorithm | ||
944 | Delete Columns to Make Sorted | Easy | Algorithm | ||
945 | Minimum Increment to Make Array Unique | Medium | Algorithm | ||
946 | Validate Stack Sequences | Medium | Algorithm | ||
947 | Most Stones Removed with Same Row or Column | Medium | Algorithm | ||
948 | Bag of Tokens | Medium | Algorithm | ||
949 | Largest Time for Given Digits | Easy | Algorithm | ||
950 | Reveal Cards In Increasing Order | Medium | Algorithm | ||
951 | Flip Equivalent Binary Trees | Medium | Algorithm | ||
952 | Largest Component Size by Common Factor | Hard | Algorithm | ||
953 | Verifying an Alien Dictionary | Easy | Algorithm | ||
954 | Array of Doubled Pairs | Medium | Algorithm | ||
955 | Delete Columns to Make Sorted II | Medium | Algorithm | ||
956 | Tallest Billboard | Hard | Algorithm | ||
957 | Prison Cells After N Days | Medium | Algorithm | ||
958 | Check Completeness of a Binary Tree | Medium | Algorithm | ||
959 | Regions Cut By Slashes | Medium | Algorithm | ||
960 | Delete Columns to Make Sorted III | Hard | Algorithm | ||
961 | N-Repeated Element in Size 2N Array | Easy | Algorithm | ||
962 | Maximum Width Ramp | Medium | Algorithm | ||
963 | Minimum Area Rectangle II | Medium | Algorithm | ||
964 | Least Operators to Express Number | Hard | Algorithm | ||
965 | Univalued Binary Tree | Easy | Algorithm | ||
966 | Vowel Spellchecker | Medium | Algorithm | ||
967 | Numbers With Same Consecutive Differences | Medium | Algorithm | ||
968 | Binary Tree Cameras | Hard | Algorithm | ||
969 | Pancake Sorting | Medium | Algorithm | ||
970 | Powerful Integers | Easy | Algorithm | ||
971 | Flip Binary Tree To Match Preorder Traversal | Medium | Algorithm | ||
972 | Equal Rational Numbers | Hard | Algorithm |
- 510
- 511
- 512
- 534
- 550
- 912