1 |
Two Sum |
|
python |
|
|
|
Easy |
2 |
Add Two Numbers |
|
python |
|
|
|
Medium |
3 |
$Longest Substring Without Repeating Characters |
|
python |
|
|
|
Medium |
4 |
Median of Two Sorted Arrays |
c++ |
|
|
|
java |
Hard |
5 |
Longest Palindromic Substring |
|
python |
|
|
|
Medium |
7 |
Reverse Integer |
|
|
|
|
java |
Easy |
10 |
Regular Expression Matching |
|
python |
|
|
|
Hard |
11 |
$Container with Most Water |
c++ |
|
|
|
|
Medium |
15 |
$3Sum |
c++ |
|
|
|
|
Medium |
20 |
Valid Parentheses |
|
python |
|
|
|
Easy |
22 |
Generate Parentheses |
|
python |
|
|
|
Medium |
23 |
Merge K Sorted Array |
c++ |
|
|
|
|
Hard |
24 |
$Swap Nodes in Pairs |
c++ |
|
|
|
|
Medium |
25 |
$Reverse Nodes in k-Group |
c++ |
python |
|
|
|
Hard |
26 |
Remove Duplicates from Sorted Array |
|
python |
|
|
|
Easy |
27 |
Remove Element |
|
python |
|
|
|
Easy |
33 |
$Search in Rotated Sorted Array |
c++ |
|
|
|
|
Medium |
34 |
Find First and Last Position of Element in Sorted Array |
c++ |
|
|
|
java |
Medium |
35 |
$Search Insert Position |
c++ |
|
|
|
|
Easy |
37 |
Sudoku Solver |
c++ |
|
|
|
|
Hard |
42 |
Trapping Rain Water |
|
python |
|
|
|
Hard |
43 |
Multiply Strings |
|
python |
|
|
|
Medium |
45 |
$Jump Game |
|
python |
|
|
|
Medium |
46 |
$Permutations |
|
python |
|
|
|
Medium |
48 |
Rotate Image |
c++ |
|
|
|
|
Medium |
51 |
N-Queues |
c++ |
|
|
|
|
Hard |
52 |
$N-Queues II |
|
python |
|
|
|
Hard |
53 |
$Maximum Subarray |
|
python |
|
|
|
Easy |
54 |
Spiral Matrix |
c++ |
|
|
|
|
Medium |
55 |
Jump Game |
|
python |
|
|
|
Medium |
56 |
Merge Intervals |
c++ |
|
|
|
|
Medium |
60 |
$Permutation Sequence |
c++ |
|
|
|
|
Hard |
64 |
$Minimum Path Sum |
c++ |
python |
|
|
|
Medium |
69 |
$Sqrt(x) |
c++ |
|
|
|
|
Easy |
70 |
Climbing Stairs |
|
python |
|
|
|
Easy |
72 |
$Edit Distance |
c++ |
python |
|
|
|
Hard |
74 |
$Search a 2D Matrix |
c++ |
|
|
|
|
Medium |
75 |
$Sort Colors |
|
python |
|
|
|
Medium |
76 |
Minimum Window Substring |
c++ |
|
|
|
|
Hard |
77 |
$Combinations |
|
python |
|
|
|
Medium |
78 |
Subsets |
c++ |
python |
|
|
|
Medium |
81 |
Search in Rotated Sorted Array II |
c++ |
|
|
|
|
Medium |
82 |
Remove Duplicates from Sorted List II |
c++ |
|
|
|
|
Medium |
83 |
Remove Duplicates from Sorted List |
|
python |
|
|
|
Easy |
91 |
$Decode Ways |
c++ |
|
|
|
|
Medium |
92 |
Reverse Linked List II |
|
python |
|
|
|
Medium |
93 |
$Restore IP Addresses |
|
|
|
|
|
Medium |
96 |
$Unique Binary Search Trees |
c++ |
|
|
|
|
Medium |
98 |
Valid Binary Search Tree |
c++ |
|
|
|
|
Medium |
105 |
$Construct Binary Tree from Preorder and Inorder Traversal |
|
python |
|
|
|
Medium |
111 |
$Minimum Depth of Binary Tree |
c++ |
|
|
|
|
Easy |
114 |
$Flatten Binary Tree to Linked List |
|
python |
|
|
|
Medium |
115 |
$Distinct Subsequences |
c++ |
|
|
|
|
Hard |
116 |
$Populating Next Right Pointers in Each Node |
|
python |
|
|
|
Medium |
121 |
Best Time to Buy and Sell Stock |
|
python |
|
|
|
Easy |
122 |
Best Time to Buy and Sell Stock II |
c++ |
python |
|
|
|
Easy |
123 |
$Best Time to Buy and Sell Stock III |
c++ |
python |
|
|
|
Hard |
132 |
Parlindrome Partitioning II |
c++ |
|
|
|
|
Hard |
133 |
$Clone Graph |
c++ |
|
|
|
|
Medium |
135 |
Candy |
c++ |
|
|
|
|
Hard |
136 |
Single Number |
|
|
|
|
java |
Easy |
137 |
$Single Number II |
c++ |
|
|
|
|
Medium |
143 |
$Reorder List |
c++ |
|
|
|
|
Medium |
146 |
LRU Cache |
c++ |
|
|
|
|
Medium |
147 |
$Insertion Sort List |
c++ |
|
|
|
|
Medium |
148 |
Sort List |
|
python |
|
|
|
Medium |
149 |
Max Points on a Line |
c++ |
|
|
|
|
Hard |
153 |
Find Minimum in Rotated Sorted Array |
c++ |
|
|
|
|
Medium |
154 |
Find Minimum in Rotated Sorted Array II |
c++ |
|
|
|
|
Hard |
167 |
$Two Sum II - Input array is sorted |
|
python |
|
|
|
Easy |
169 |
Majority Element |
c++ |
|
|
|
|
Easy |
188 |
Best Time to Buy and Sell Stock IV |
c++ |
|
|
|
|
Hard |
191 |
Number of 1 Bits |
c++ |
|
|
|
|
Easy |
198 |
House Robber |
c++ |
python |
|
|
|
Easy |
201 |
$Bitwise AND of Numbers Range |
c++ |
|
|
|
|
Medium |
204 |
Count Primes |
|
python |
|
|
|
Easy |
206 |
Reverse Linked List |
c++ |
python |
|
|
|
Easy |
208 |
Implement Trie (Prefix Tree) |
c++ |
|
|
|
|
Medium |
209 |
Minimum Size Subarray Sum |
c++ |
|
|
|
|
Medium |
212 |
$Word Search II |
c++ |
|
|
|
|
Hard |
213 |
House Robber II |
c++ |
python |
|
|
|
Medium |
214 |
Shortest Palindrome |
c++ |
|
|
|
|
Hard |
215 |
$Kth Largest Element in an Array |
c++ |
|
|
|
java |
Medium |
224 |
Basic Calculator |
c++ |
python |
|
|
|
Hard |
225 |
Implement Stack using Queues |
c++ |
|
|
|
|
Easy |
226 |
Invert Binary Tree |
|
|
go |
|
|
Easy |
232 |
Implement Queue using Stacks |
c++ |
|
|
|
|
Easy |
233 |
Number of Digit One |
c++ |
|
|
|
|
Hard |
236 |
Lowest Common Ancestor of a Binary Tree |
|
python |
|
|
|
Medium |
239 |
$Sliding Window Maximum |
c++ |
python |
|
|
|
Hard |
240 |
$Search a 2D Matrix II |
c++ |
|
|
|
|
Medium |
241 |
Different Ways to Add Parentheses |
c++ |
|
|
|
|
Medium |
243 |
$Shortest Word Distance |
c++ |
|
|
|
|
Easy |
256 |
Paint House |
c++ |
|
|
|
|
Medium |
260 |
$Single Number III |
c++ |
|
|
|
|
Medium |
263 |
Ugly Number |
c++ |
|
|
|
|
Easy |
264 |
$Ugly Number II |
c++ |
|
|
|
|
Medium |
265 |
$Paint House II |
c++ |
|
|
|
|
Medium |
277 |
$Find the Celebrity |
c++ |
|
|
|
|
Medium |
278 |
First Bad Version |
c++ |
|
|
|
|
Easy |
279 |
Perfect Squares |
|
|
|
|
|
Medium |
282 |
Expression Add Operators |
c++ |
|
|
|
|
Hard |
283 |
Move Zeros |
|
python |
|
|
|
Easy |
292 |
Nim Game |
c++ |
|
|
|
|
Easy |
294 |
Flip Game II |
c++ |
|
|
|
|
Medium |
295 |
Find Median from Data Stream |
c++ |
python |
|
|
|
Hard |
296 |
$Best Meeting Point |
c++ |
|
|
|
|
Hard |
297 |
$Serialize and Deserialize Binary Tree |
c++ |
|
|
|
|
Hard |
300 |
Longest Increasing Subsequence |
c++ |
python |
|
|
java |
Medium |
302 |
$Smallest Rectangle Enclosing Black Pixels |
c++ |
|
|
|
|
Hard |
307 |
Range Sum Query - Mutable |
c++ |
|
|
|
|
Medium |
309 |
Best Time to Buy and Sell Stock with Cooldown |
c++ |
|
|
|
|
Medium |
310 |
Minimum Height Trees |
|
|
|
|
|
Medium |
311 |
Sparse Matrix Multiplication |
c++ |
|
|
|
|
Medium |
312 |
$Burst Balloons |
|
python |
|
|
|
Hard |
316 |
$Remove Duplicate Letters |
|
|
|
|
|
Medium |
317 |
Shortest Distance from All Buildings |
c++ |
|
|
|
|
Hard |
318 |
$Maximum Product of Word Lengths |
c++ |
|
|
|
|
Medium |
320 |
$Generalized Abbreviation |
c++ |
|
|
|
|
Medium |
322 |
Coin Change |
c++ |
python |
|
|
|
Medium |
323 |
$Number of Connected Components in an Undirected Graph |
c++ |
|
|
|
|
Medium |
325 |
Maximum Size Subarray Sum Equals k |
c++ |
|
|
|
|
Medium |
328 |
Odd Even Linked List |
c++ |
|
|
|
|
Medium |
333 |
Largest BST Tree |
c++ |
|
|
|
|
Medium |
337 |
House Robber III |
|
python |
|
|
|
Medium |
341 |
$Flatten Nested List Iterator |
|
python |
|
|
|
Medium |
343 |
Integer Break |
c++ |
|
|
|
|
Medium |
346 |
Moving Average from Data Stream |
c++ |
|
|
|
|
Easy |
353 |
$Design Snake Game |
c++ |
|
|
|
|
Medium |
354 |
$Russian Doll Envelopes |
c++ |
|
|
|
|
Hard |
358 |
Rearrange String k Distance Apart |
c++ |
|
|
|
|
Hard |
361 |
$Bomb Enemy |
c++ |
|
|
|
|
Medium |
362 |
$Design Hit Counter |
c++ |
|
|
|
|
Medium |
363 |
Max Sum of Rectangle No larger Than K |
c++ |
|
|
|
|
Hard |
367 |
$Valid Perfect Square |
c++ |
|
|
|
|
Easy |
372 |
Super Pow |
c++ |
|
|
|
|
Medium |
376 |
Wiggle Subsequence |
c++ |
|
|
|
java |
Medium |
380 |
$Insert Delete GetRandom O(1) |
|
python |
|
|
|
Medium |
382 |
Linked List Random Node |
c++ |
|
|
|
|
Medium |
389 |
$Find the Difference |
|
|
|
|
java |
Easy |
391 |
Perfect Rectangle |
|
python |
|
|
|
Hard |
392 |
$Is Subsequence |
c++ |
python |
|
|
|
Easy |
398 |
Random Pick Index |
c++ |
python |
|
|
|
Medium |
401 |
Binary Watch |
c++ |
|
|
|
|
Easy |
407 |
Trapping Rain Water II |
c++ |
|
|
|
|
Hard |
408 |
Valid Word Abbreviation |
c++ |
|
|
|
|
Easy |
409 |
Longest Palindrome |
c++ |
python |
|
|
|
Easy |
411 |
Minimum Unique Word Abbreviation |
c++ |
|
|
|
|
Hard |
413 |
$Arithmetic Slices |
c++ |
|
|
|
|
Medium |
416 |
Partition Equal Subset Sum |
c++ |
|
|
|
|
Medium |
418 |
Sentence Screen Fitting |
c++ |
|
|
|
|
Medium |
419 |
Battleships in a Board |
c++ |
|
|
|
|
Medium |
424 |
Longest Repeating Character Replacement |
c++ |
|
|
|
|
Medium |
435 |
$Non-overlapping Intervals |
c++ |
|
|
|
|
Medium |
438 |
$Find All Anagrams in a String |
c++ |
|
|
|
|
Medium |
444 |
Sequence Reconstruction |
c++ |
|
|
|
|
Medium |
446 |
Arithmetic Slices II - Subsequence |
c++ |
|
|
|
|
Hard |
449 |
$Serialize and Deserialize BST |
c++ |
|
|
|
|
Medium |
450 |
$Delete Node in a BST |
c++ |
|
|
|
|
Medium |
452 |
$Minimum Number of Arrows to Burst Balloons |
c++ |
|
|
|
|
Medium |
454 |
$4Sum II |
c++ |
|
|
|
|
Medium |
457 |
Circular Array Loop |
c++ |
|
|
|
|
Medium |
459 |
$Repeated Substring Pattern |
c++ |
|
|
|
|
Easy |
460 |
LFU Cache |
c++ |
|
|
|
|
Hard |
464 |
Can I Win |
c++ |
|
|
|
|
Medium |
468 |
Validate IP Address |
c++ |
|
|
|
|
Medium |
474 |
Ones and Zeros |
|
|
|
|
|
Medium |
480 |
$Sliding Window Median |
|
python |
|
|
|
Hard |
486 |
Predict the Winner |
c++ |
|
|
|
|
Medium |
487 |
$Max Consecutive Ones II |
c++ |
|
|
|
|
Medium |
493 |
Reverse Pairs |
c++ |
|
|
|
|
Hard |
494 |
Target Sum |
|
python |
|
|
|
Medium |
496 |
$Next Greater Element I |
c++ |
python |
|
|
|
Easy |
503 |
Next Greater Element II |
c++ |
python |
|
|
|
Medium |
516 |
Longest Palindromic Subsequence |
|
python |
|
|
|
Medium |
518 |
$Coin Change 2 |
c++ |
python |
|
|
java |
Medium |
523 |
Continuous Subarray Sum |
c++ |
|
|
|
|
Medium |
538 |
Convert BST to Greater Tree |
c++ |
|
|
|
|
Medium |
540 |
$Single Element in a Sorted Array |
c++ |
|
|
|
|
Medium |
542 |
01 Matrix |
c++ |
|
|
|
|
Medium |
556 |
$Next Greater Element III |
c++ |
|
|
|
|
Medium |
560 |
Subarray Sum Equals K |
|
python |
|
|
|
Medium |
562 |
$Longest Line of Consecutive One in Matrix |
c++ |
|
|
|
|
Medium |
567 |
Permutation in String |
c++ |
|
|
|
|
Medium |
568 |
$Maximum Vaccation Days |
c++ |
|
|
|
|
Hard |
572 |
Subtree of Another Tree |
c++ |
|
|
|
|
Easy |
582 |
Kill Process |
|
|
|
|
|
Medium |
583 |
Delete Operation for Two Strings |
c++ |
|
|
|
|
Medium |
588 |
$Design In-Memory File System |
c++ |
|
|
|
|
Hard |
589 |
$N-ary Tree Preorder Traversal |
c++ |
|
|
|
|
Easy |
590 |
$N-ary Tree Postorder Traversal |
c++ |
|
|
|
|
Easy |
629 |
K Inverse Pairs Array |
c++ |
|
|
|
|
Hard |
635 |
$Design Log Storage System |
c++ |
|
|
|
|
Medium |
644 |
$Maximum Average Subarray II |
c++ |
python |
|
|
java |
Hard |
645 |
Set Mismatch |
c++ |
|
|
|
|
Easy |
650 |
2 Keys Keyboard |
c++ |
|
|
|
|
Medium |
651 |
4 Keys Keyboard |
|
python |
|
|
|
Medum |
654 |
Maximum Binary Tree |
c++ |
python |
|
|
|
Medium |
658 |
Find K Closest Elements |
c++ |
|
|
|
java |
Medium |
662 |
$Maximum Width of Binary Tree |
c++ |
|
|
|
|
Medium |
676 |
Implement Magic Dictionary |
c++ |
|
|
|
|
Medium |
698 |
Partition to K Equal Sum Subsets |
c++ |
|
|
|
java |
Medium |
700 |
Search in a Binary Search Tree |
|
python |
|
|
|
Easy |
701 |
$Insert into a Binary Search Tree |
c++ |
|
|
|
|
Medium |
707 |
$Design Linked List |
c++ |
|
|
|
|
Medium |
710 |
$Random Pick with Blacklist |
|
python |
|
|
|
Hard |
712 |
Minimum ASCII Delete Sum for Two Strings |
|
python |
|
|
|
Medium |
714 |
Best Time to Buy and Sell Stock with Transaction Fee |
c++ |
|
|
|
|
Medium |
715 |
Range Module |
c++ |
|
|
|
|
Hard |
716 |
Max Stack |
c++ |
|
|
|
|
Easy |
725 |
Split Linked List in Parts |
c++ |
|
|
|
|
Medium |
729 |
My Calendar I |
c++ |
|
|
|
|
Medium |
731 |
My Calendar II |
c++ |
|
|
|
|
Medium |
732 |
My Calendar III |
c++ |
|
|
|
|
Hard |
736 |
Parse Lisp Expression |
c++ |
|
|
|
|
Hard |
737 |
$Sentence Similarity II |
c++ |
|
|
|
|
Medium |
739 |
Daily Temperatures |
|
python |
|
|
|
Medium |
744 |
Find Smallest Letter Greater Than Target |
c++ |
|
|
|
|
Easy |
745 |
Prefix and Suffix Search |
c++ |
|
|
|
|
Hard |
751 |
IP to CIDR |
c++ |
|
|
|
|
Medium |
752 |
$Open the lock |
c++ |
|
|
|
|
Medium |
759 |
$Employee Free Time |
c++ |
|
|
|
|
Hard |
761 |
$Special Binary String |
c++ |
|
|
|
|
Hard |
765 |
$Couples Holding Hands |
c++ |
|
|
|
|
Hard |
767 |
Reorganize String |
c++ |
|
|
|
|
Medium |
768 |
Max Chunks To Make Sorted II |
c++ |
|
|
|
|
Hard |
769 |
Max Chunks To Make Sorted |
c++ |
|
|
|
|
Medium |
773 |
$Sliding Puzzle |
c++ |
|
|
|
|
Hard |
774 |
$Minimize Max Distance to Gas Station |
c++ |
|
|
|
|
Hard |
777 |
Swap Adjacent in LR String |
c++ |
|
|
|
|
Medium |
780 |
$Reaching Points |
c++ |
|
|
|
|
Hard |
788 |
Rotated Digits |
c++ |
|
|
|
|
Easy |
803 |
Bricks Falling When Hit |
c++ |
|
|
|
|
Hard |
809 |
Expressive Words |
c++ |
|
|
js |
|
Medium |
811 |
Subdomain Visit Count |
c++ |
|
|
|
|
Medium |
815 |
Bus Routes |
c++ |
|
|
|
|
Hard |
837 |
New 21 Game |
c++ |
|
|
|
|
Medium |
875 |
Koko Eating Bananas |
c++ |
|
|
|
|
Medium |
876 |
Middle of the Linked List |
c++ |
|
|
|
|
Easy |
877 |
Stone Game |
c++ |
|
|
|
|
Medium |
887 |
Super Egg Drop |
c++ |
python |
|
|
|
Hard |
946 |
Validate Stack Sequences |
c++ |
|
|
|
|
Medium |
969 |
Pancake Sorting |
|
python |
|
|
|
Medium |
981 |
Time Based Key-Value Store |
c++ |
|
|
|
|
Medium |
986 |
Interval List Intersections |
|
python |
|
|
|
Medium |
990 |
Satisfiability of Equality Equations |
c++ |
|
|
|
|
Medium |
998 |
Maximum Binary Tree II |
c++ |
|
|
|
|
Medium |
1011 |
Capacity To Ship Packages Within D Days |
|
python |
|
|
|
Medium |
1019 |
Next Greater Node in Linked List |
c++ |
|
|
|
|
Medium |
1025 |
Divisor Game |
c++ |
|
|
|
|
Easy |
1041 |
$Robot Bounded in Circle |
c++ |
|
|
|
|
Medium |
1059 |
$All Paths from Source Lead to Destination |
|
python |
|
|
|
Medium |
1109 |
Corporate Flight Bookings |
c++ |
|
|
|
|
Medium |
1140 |
Stone Game II |
|
python |
|
|
|
Medium |
1143 |
Longest Common Subsequence |
c++ |
python |
|
|
|
Medium |
1201 |
Ugly Number III |
c++ |
|
|
|
|
Medium |
1209 |
$Remove All Adjacent Duplicates in String II |
c++ |
|
|
|
|
Medium |
1245 |
$Tree Diameter |
c++ |
|
|
|
|
Medium |
1250 |
Check If It Is a Good Array |
c++ |
|
|
|
|
Hard |
1288 |
$Remove Covered Intervals |
c++ |
|
|
|
|
Medium |
1301 |
Number of Paths with Max Score |
|
|
|
|
|
Hard |
1339 |
$Maximum Product of Splitted Binary Tree |
|
|
|
|
|
Medium |
1359 |
Count All Valid Pickup and Delivery Options |
c++ |
|
|
|
|
Hard |
1367 |
Linked List in Binary Tree |
c++ |
python |
|
|
|
Medium |
1396 |
$Design Underground System |
c++ |
|
|
|
|
Medium |
1414 |
Find the Minimum Number of Fibonacci Numbers Whose Sum Is K |
c++ |
|
|
|
|
Medium |
1423 |
Maximum Points You Can Obtain from Cards |
c++ |
|
|
|
|
Medium |
1438 |
Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit |
c++ |
|
|
|
|
Medium |
1462 |
Course Schedule IV |
|
|
|
|
|
Medium |
1473 |
Paint House III |
c++ |
|
|
|
|
Hard |
1488 |
Avoid Flood in The City |
c++ |
|
|
|
|
Medium |
1512 |
Number of Good Pairs |
c++ |
|
|
|
|
Easy |
1530 |
Number of Good Leaf Nodes Pairs |
|
|
|
|
|
Medium |
1531 |
String Compression II |
c++ |
|
|
|
|
Hard |
1564 |
Put Boxes into the Warehouse I |
c++ |
|
|
|
|
Medium |
1580 |
Put Boxes into the Warehouse II |
c++ |
|
|
|
|
Medium |
1594 |
Maximum Non Negative Product in a Matrix |
c++ |
|
|
|
|
Medium |
1644 |
Lowest Common Ancestor of a Binary Tree II |
|
python |
|
|
|
Medium |
1666 |
Change the Root of a Binary Tree |
c++ |
|
|
|
|
Medium |
1696 |
$Jump Game VI |
|
python |
|
|
|
Medium |