| 0001 |
Two Sum |
Easy |
cpp |
| 0002 |
Add Two Numbers |
Medium |
cpp |
| 0003 |
Longest Substring Without Repeating Characters |
Medium |
cpp |
| 0004 |
Median of Two Sorted Arrays |
Hard |
cpp |
| 0005 |
Longest Palindromic Substring |
Medium |
cpp |
| 0006 |
ZigZag Conversion |
Medium |
cpp |
| 0007 |
Reverse Integer |
Easy |
cpp |
| 0008 |
String to Integer (atoi) |
Medium |
cpp |
| 0009 |
Palindrome Number |
Easy |
cpp |
| 0010 |
Regular Expression Matching |
Hard |
cpp |
| 0011 |
Container With Most Water |
Medium |
cpp |
| 0012 |
Integer to Roman |
Medium |
cpp |
| 0014 |
Longest Common Prefix |
Easy |
cpp |
| 0015 |
3Sum |
Medium |
cpp |
| 0016 |
3Sum Closest |
Medium |
cpp |
| 0017 |
Letter Combinations of a Phone Number |
Medium |
cpp |
| 0018 |
4Sum |
Medium |
cpp |
| 0019 |
Remove Nth Node From End of List |
Medium |
cpp |
| 0020 |
Valid Parentheses |
Easy |
cpp |
| 0021 |
Merge Two Sorted Lists |
Easy |
cpp |
| 0022 |
Generate Parentheses |
Medium |
cpp |
| 0023 |
Merge k Sorted Lists |
Hard |
cpp |
| 0024 |
Swap Nodes in Pairs |
Medium |
cpp |
| 0025 |
Reverse Nodes in k-Group |
Hard |
cpp |
| 0026 |
Remove Duplicates from Sorted Array |
Easy |
cpp |
| 0027 |
Remove Element |
Easy |
cpp |
| 0029 |
Divide Two Integers |
Medium |
cpp |
| 0031 |
Next Permutation |
Medium |
cpp |
| 0032 |
Longest Valid Parentheses |
Hard |
cpp |
| 0033 |
Search in Rotated Sorted Array |
Medium |
cpp |
| 0034 |
Find First and Last Position of Element in Sorted Array |
Medium |
cpp |
| 0035 |
Search Insert Position |
Easy |
cpp |
| 0038 |
Count and Say |
Easy |
cpp |
| 0039 |
Combination Sum |
Medium |
cpp |
| 0040 |
Combination Sum II |
Medium |
cpp |
| 0041 |
First Missing Positive |
Hard |
cpp |
| 0042 |
Trapping Rain Water |
Hard |
cpp |
| 0043 |
Multiply Strings |
Medium |
cpp |
| 0045 |
Jump Game II |
Hard |
cpp |
| 0046 |
Permutations |
Medium |
cpp |
| 0047 |
Permutations II |
Medium |
cpp |
| 0048 |
Rotate Image |
Medium |
cpp |
| 0049 |
Group Anagrams |
Medium |
cpp |
| 0050 |
Pow(x, n) |
Medium |
cpp |
| 0053 |
Maximum Subarray |
Easy |
cpp |
| 0054 |
Spiral Matrix |
Medium |
cpp |
| 0055 |
Jump Game |
Medium |
cpp |
| 0056 |
Merge Intervals |
Medium |
cpp |
| 0058 |
Length of Last Word |
Easy |
cpp |
| 0059 |
Spiral Matrix II |
Medium |
cpp |
| 0061 |
Rotate List |
Medium |
cpp |
| 0062 |
Unique Paths |
Medium |
cpp |
| 0063 |
Unique Paths II |
Medium |
cpp |
| 0064 |
Minimum Path Sum |
Medium |
cpp |
| 0065 |
Valid Number |
Hard |
cpp |
| 0066 |
Plus One |
Easy |
cpp |
| 0067 |
Add Binary |
Easy |
cpp |
| 0069 |
Sqrt(x) |
Easy |
cpp |
| 0070 |
Climbing Stairs |
Easy |
cpp |
| 0071 |
Simplify Path |
Medium |
cpp |
| 0072 |
Edit Distance |
Hard |
cpp |
| 0073 |
Set Matrix Zeroes |
Medium |
cpp |
| 0075 |
Sort Colors |
Medium |
cpp |
| 0076 |
Minimum Window Substring |
Hard |
cpp |
| 0078 |
Subsets |
Medium |
cpp |
| 0079 |
Word Search |
Medium |
cpp |
| 0082 |
Remove Duplicates from Sorted List II |
Medium |
cpp |
| 0083 |
Remove Duplicates from Sorted List |
Easy |
cpp |
| 0084 |
Largest Rectangle in Histogram |
Hard |
cpp |
| 0085 |
Maximal Rectangle |
Hard |
cpp |
| 0086 |
Partition List |
Medium |
cpp |
| 0087 |
Scramble String |
Hard |
cpp |
| 0088 |
Merge Sorted Array |
Easy |
cpp |
| 0090 |
Subsets II |
Medium |
cpp |
| 0091 |
Decode Ways |
Medium |
cpp |
| 0092 |
Reverse Linked List II |
Medium |
cpp |
| 0094 |
Binary Tree Inorder Traversal |
Medium |
cpp |
| 0095 |
Unique Binary Search Trees II |
Medium |
cpp |
| 0096 |
Unique Binary Search Trees |
Medium |
cpp |
| 0098 |
Validate Binary Search Tree |
Medium |
cpp |
| 0099 |
Recover Binary Search Tree |
Hard |
cpp |
| 0101 |
Symmetric Tree |
Easy |
cpp |
| 0102 |
Binary Tree Level Order Traversal |
Medium |
cpp |
| 0103 |
Binary Tree Zigzag Level Order Traversal |
Medium |
cpp |
| 0104 |
Maximum Depth of Binary Tree |
Easy |
cpp |
| 0105 |
Construct Binary Tree from Preorder and Inorder Traversal |
Medium |
cpp |
| 0107 |
Binary Tree Level Order Traversal II |
Easy |
cpp |
| 0108 |
Convert Sorted Array to Binary Search Tree |
Easy |
cpp |
| 0109 |
Convert Sorted List to Binary Search Tree |
Medium |
cpp |
| 0110 |
Balanced Binary Tree |
Easy |
cpp |
| 0111 |
Minimum Depth of Binary Tree |
Easy |
cpp |
| 0112 |
Path Sum |
Easy |
cpp |
| 0113 |
Path Sum II |
Medium |
cpp |
| 0114 |
Flatten Binary Tree to Linked List |
Medium |
cpp |
| 0115 |
Distinct Subsequences |
Hard |
cpp |
| 0116 |
Populating Next Right Pointers in Each Node |
Medium |
cpp |
| 0118 |
Pascal's Triangle |
Easy |
cpp |
| 0119 |
Pascal's Triangle II |
Easy |
cpp |
| 0120 |
Triangle |
Medium |
cpp |
| 0121 |
Best Time to Buy and Sell Stock |
Easy |
cpp |
| 0122 |
Best Time to Buy and Sell Stock II |
Easy |
cpp |
| 0123 |
Best Time to Buy and Sell Stock III |
Hard |
cpp |
| 0124 |
Binary Tree Maximum Path Sum |
Hard |
cpp |
| 0125 |
Valid Palindrome |
Easy |
cpp |
| 0127 |
Word Ladder |
Medium |
cpp |
| 0128 |
Longest Consecutive Sequence |
Hard |
cpp |
| 0130 |
Surrounded Regions |
Medium |
cpp |
| 0131 |
Palindrome Partitioning |
Medium |
cpp |
| 0133 |
Clone Graph |
Medium |
cpp |
| 0134 |
Gas Station |
Medium |
cpp |
| 0136 |
Single Number |
Easy |
cpp |
| 0138 |
Copy List with Random Pointer |
Medium |
cpp |
| 0139 |
Word Break |
Medium |
cpp |
| 0141 |
Linked List Cycle |
Easy |
cpp |
| 0142 |
Linked List Cycle II |
Medium |
cpp |
| 0143 |
Reorder List |
Medium |
cpp |
| 0144 |
Binary Tree Preorder Traversal |
Medium |
cpp |
| 0145 |
Binary Tree Postorder Traversal |
Medium |
cpp |
| 0146 |
LRU Cache |
Medium |
cpp |
| 0147 |
Insertion Sort List |
Medium |
cpp |
| 0148 |
Sort List |
Medium |
cpp |
| 0149 |
Max Points on a Line |
Hard |
cpp |
| 0150 |
Evaluate Reverse Polish Notation |
Medium |
cpp |
| 0151 |
Reverse Words in a String |
Medium |
cpp |
| 0152 |
Maximum Product Subarray |
Medium |
cpp |
| 0153 |
Find Minimum in Rotated Sorted Array |
Medium |
cpp |
| 0154 |
Find Minimum in Rotated Sorted Array II |
Hard |
cpp |
| 0155 |
Min Stack |
Easy |
cpp |
| 0160 |
Intersection of Two Linked Lists |
Easy |
cpp |
| 0162 |
Find Peak Element |
Medium |
cpp |
| 0166 |
Fraction to Recurring Decimal |
Medium |
cpp |
| 0167 |
Two Sum II - Input array is sorted |
Easy |
cpp |
| 0168 |
Excel Sheet Column Title |
Easy |
cpp |
| 0171 |
Excel Sheet Column Number |
Easy |
cpp |
| 0172 |
Factorial Trailing Zeroes |
Easy |
cpp |
| 0173 |
Binary Search Tree Iterator |
Medium |
cpp |
| 0179 |
Largest Number |
Medium |
cpp |
| 0188 |
Best Time to Buy and Sell Stock IV |
Hard |
cpp |
| 0189 |
Rotate Array |
Medium |
cpp |
| 0190 |
Reverse Bits |
Easy |
cpp |
| 0191 |
Number of 1 Bits |
Easy |
cpp |
| 0198 |
House Robber |
Easy |
cpp |
| 0200 |
Number of Islands |
Medium |
cpp |
| 0203 |
Remove Linked List Elements |
Easy |
cpp |
| 0205 |
Isomorphic Strings |
Easy |
cpp |
| 0206 |
Reverse Linked List |
Easy |
cpp |
| 0207 |
Course Schedule |
Medium |
cpp |
| 0208 |
Implement Trie (Prefix Tree) |
Medium |
cpp |
| 0210 |
Course Schedule II |
Medium |
cpp |
| 0213 |
House Robber II |
Medium |
cpp |
| 0215 |
Kth Largest Element in an Array |
Medium |
cpp |
| 0217 |
Contains Duplicate |
Easy |
cpp |
| 0219 |
Contains Duplicate II |
Easy |
cpp |
| 0220 |
Contains Duplicate III |
Medium |
cpp |
| 0221 |
Maximal Square |
Medium |
cpp |
| 0224 |
Basic Calculator |
Hard |
cpp |
| 0225 |
Implement Stack using Queues |
Easy |
cpp |
| 0226 |
Invert Binary Tree |
Easy |
cpp |
| 0232 |
Implement Queue using Stacks |
Easy |
cpp |
| 0234 |
Palindrome Linked List |
Easy |
cpp |
| 0236 |
Lowest Common Ancestor of a Binary Tree |
Medium |
cpp |
| 0237 |
Delete Node in a Linked List |
Easy |
cpp |
| 0238 |
Product of Array Except Self |
Medium |
cpp |
| 0239 |
Sliding Window Maximum |
Hard |
cpp |
| 0240 |
Search a 2D Matrix II |
Medium |
cpp |
| 0252 |
Meeting Rooms |
Easy |
cpp |
| 0253 |
Meeting Rooms II |
Medium |
cpp |
| 0257 |
Binary Tree Paths |
Easy |
cpp |
| 0268 |
Missing Number |
Easy |
cpp |
| 0274 |
H-Index |
Medium |
cpp |
| 0278 |
First Bad Version |
Easy |
cpp |
| 0279 |
Perfect Squares |
Medium |
cpp |
| 0280 |
Wiggle Sort |
Medium |
cpp |
| 0287 |
Find the Duplicate Number |
Medium |
cpp |
| 0289 |
Game of Life |
Medium |
cpp |
| 0290 |
Word Pattern |
Easy |
cpp |
| 0295 |
Find Median from Data Stream |
Hard |
cpp |
| 0297 |
Serialize and Deserialize Binary Tree |
Hard |
cpp |
| 0299 |
Bulls and Cows |
Medium |
cpp |
| 0300 |
Longest Increasing Subsequence |
Medium |
cpp |
| 0301 |
Remove Invalid Parentheses |
Hard |
cpp |
| 0304 |
Range Sum Query 2D - Immutable |
Medium |
cpp |
| 0309 |
Best Time to Buy and Sell Stock with Cooldown |
Medium |
cpp |
| 0310 |
Minimum Height Trees |
Medium |
cpp |
| 0312 |
Burst Balloons |
Hard |
cpp |
| 0322 |
Coin Change |
Medium |
cpp |
| 0324 |
Wiggle Sort II |
Medium |
cpp |
| 0326 |
Power of Three |
Easy |
cpp |
| 0328 |
Odd Even Linked List |
Medium |
cpp |
| 0331 |
Verify Preorder Serialization of a Binary Tree |
Medium |
cpp |
| 0332 |
Reconstruct Itinerary |
Medium |
cpp |
| 0337 |
House Robber III |
Medium |
cpp |
| 0338 |
Counting Bits |
Medium |
cpp |
| 0341 |
Flatten Nested List Iterator |
Medium |
cpp |
| 0342 |
Power of Four |
Easy |
cpp |
| 0343 |
Integer Break |
Medium |
cpp |
| 0344 |
Reverse String |
Easy |
cpp |
| 0345 |
Reverse Vowels of a String |
Easy |
cpp |
| 0347 |
Top K Frequent Elements |
Medium |
cpp |
| 0367 |
Valid Perfect Square |
Easy |
cpp |
| 0369 |
Plus One Linked List |
Medium |
cpp |
| 0374 |
Guess Number Higher or Lower |
Easy |
cpp |
| 0376 |
Wiggle Subsequence |
Medium |
cpp |
| 0377 |
Combination Sum IV |
Medium |
cpp |
| 0383 |
Ransom Note |
Easy |
cpp |
| 0385 |
Mini Parser |
Medium |
cpp |
| 0387 |
First Unique Character in a String |
Easy |
cpp |
| 0389 |
Find the Difference |
Easy |
cpp |
| 0392 |
Is Subsequence |
Easy |
cpp |
| 0394 |
Decode String |
Medium |
cpp |
| 0399 |
Evaluate Division |
Medium |
cpp |
| 0401 |
Binary Watch |
Easy |
cpp |
| 0402 |
Remove K Digits |
Medium |
cpp |
| 0404 |
Sum of Left Leaves |
Easy |
cpp |
| 0405 |
Convert a Number to Hexadecimal |
Easy |
cpp |
| 0406 |
Queue Reconstruction by Height |
Medium |
cpp |
| 0409 |
Longest Palindrome |
Easy |
cpp |
| 0412 |
Fizz Buzz |
Easy |
cpp |
| 0414 |
Third Maximum Number |
Easy |
cpp |
| 0415 |
Add Strings |
Easy |
cpp |
| 0416 |
Partition Equal Subset Sum |
Medium |
cpp |
| 0426 |
Convert Binary Search Tree to Sorted Doubly Linked List |
Medium |
cpp |
| 0430 |
Flatten a Multilevel Doubly Linked List |
Medium |
cpp |
| 0434 |
Number of Segments in a String |
Easy |
cpp |
| 0435 |
Non-overlapping Intervals |
Medium |
cpp |
| 0437 |
Path Sum III |
Medium |
cpp |
| 0438 |
Find All Anagrams in a String |
Medium |
cpp |
| 0441 |
Arranging Coins |
Easy |
cpp |
| 0443 |
String Compression |
Medium |
cpp |
| 0445 |
Add Two Numbers II |
Medium |
cpp |
| 0447 |
Number of Boomerangs |
Easy |
cpp |
| 0448 |
Find All Numbers Disappeared in an Array |
Easy |
cpp |
| 0452 |
Minimum Number of Arrows to Burst Balloons |
Medium |
cpp |
| 0453 |
Minimum Moves to Equal Array Elements |
Easy |
cpp |
| 0455 |
Assign Cookies |
Easy |
cpp |
| 0456 |
132 Pattern |
Medium |
cpp |
| 0459 |
Repeated Substring Pattern |
Easy |
cpp |
| 0463 |
Island Perimeter |
Easy |
cpp |
| 0474 |
Ones and Zeroes |
Medium |
cpp |
| 0476 |
Number Complement |
Easy |
cpp |
| 0482 |
License Key Formatting |
Easy |
cpp |
| 0485 |
Max Consecutive Ones |
Easy |
cpp |
| 0492 |
Construct the Rectangle |
Easy |
cpp |
| 0494 |
Target Sum |
Medium |
cpp |
| 0496 |
Next Greater Element I |
Easy |
cpp |
| 0500 |
Keyboard Row |
Easy |
cpp |
| 0501 |
Find Mode in Binary Search Tree |
Easy |
cpp |
| 0503 |
Next Greater Element II |
Medium |
cpp |
| 0504 |
Base 7 |
Easy |
cpp |
| 0506 |
Relative Ranks |
Easy |
cpp |
| 0507 |
Perfect Number |
Easy |
cpp |
| 0509 |
Fibonacci Number |
Easy |
cpp |
| 0516 |
Longest Palindromic Subsequence |
Medium |
cpp |
| 0520 |
Detect Capital |
Easy |
cpp |
| 0521 |
Longest Uncommon Subsequence I |
Easy |
cpp |
| 0524 |
Longest Word in Dictionary through Deleting |
Medium |
cpp |
| 0530 |
Minimum Absolute Difference in BST |
Easy |
cpp |
| 0532 |
K-diff Pairs in an Array |
Medium |
cpp |
| 0538 |
Convert BST to Greater Tree |
Medium |
cpp |
| 0541 |
Reverse String II |
Easy |
cpp |
| 0543 |
Diameter of Binary Tree |
Easy |
cpp |
| 0551 |
Student Attendance Record I |
Easy |
cpp |
| 0556 |
Next Greater Element III |
Medium |
cpp |
| 0557 |
Reverse Words in a String III |
Easy |
cpp |
| 0560 |
Subarray Sum Equals K |
Medium |
cpp |
| 0581 |
Shortest Unsorted Continuous Subarray |
Medium |
cpp |
| 0617 |
Merge Two Binary Trees |
Easy |
cpp |
| 0621 |
Task Scheduler |
Medium |
cpp |
| 0636 |
Exclusive Time of Functions |
Medium |
cpp |
| 0647 |
Palindromic Substrings |
Medium |
cpp |
| 0649 |
Dota2 Senate |
Medium |
cpp |
| 0650 |
2 Keys Keyboard |
Medium |
cpp |
| 0659 |
Split Array into Consecutive Subsequences |
Medium |
cpp |
| 0682 |
Baseball Game |
Easy |
cpp |
| 0688 |
Knight Probability in Chessboard |
Medium |
cpp |
| 0707 |
Design Linked List |
Medium |
cpp |
| 0714 |
Best Time to Buy and Sell Stock with Transaction Fee |
Medium |
cpp |
| 0725 |
Split Linked List in Parts |
Medium |
cpp |
| 0735 |
Asteroid Collision |
Medium |
cpp |
| 0738 |
Monotone Increasing Digits |
Medium |
cpp |
| 0739 |
Daily Temperatures |
Medium |
cpp |
| 0746 |
Min Cost Climbing Stairs |
Easy |
cpp |
| 0763 |
Partition Labels |
Medium |
cpp |
| 0767 |
Reorganize String |
Medium |
cpp |
| 0817 |
Linked List Components |
Medium |
cpp |
| 0842 |
Split Array into Fibonacci Sequence |
Medium |
cpp |
| 0853 |
Car Fleet |
Medium |
cpp |
| 0860 |
Lemonade Change |
Easy |
cpp |
| 0861 |
Score After Flipping Matrix |
Medium |
cpp |
| 0870 |
Advantage Shuffle |
Medium |
cpp |
| 0874 |
Walking Robot Simulation |
Easy |
cpp |
| 0876 |
Middle of the Linked List |
Easy |
cpp |
| 0883 |
Projection Area of 3D Shapes |
Easy |
cpp |
| 0884 |
Uncommon Words from Two Sentences |
Easy |
cpp |
| 0885 |
Spiral Matrix III |
Medium |
cpp |
| 0901 |
Online Stock Span |
Medium |
cpp |
| 0910 |
Smallest Range II |
Medium |
cpp |
| 0913 |
Cat and Mouse |
Hard |
cpp |
| 0914 |
X of a Kind in a Deck of Cards |
Easy |
cpp |
| 0915 |
Partition Array into Disjoint Intervals |
Medium |
cpp |
| 0916 |
Word Subsets |
Medium |
cpp |
| 0921 |
Minimum Add to Make Parentheses Valid |
Medium |
cpp |
| 0922 |
Sort Array By Parity II |
Easy |
cpp |
| 0931 |
Minimum Falling Path Sum |
Medium |
cpp |
| 0935 |
Knight Dialer |
Medium |
cpp |
| 0944 |
Delete Columns to Make Sorted |
Easy |
cpp |
| 0946 |
Validate Stack Sequences |
Medium |
cpp |
| 0969 |
Pancake Sorting |
Medium |
cpp |
| 0973 |
K Closest Points to Origin |
Medium |
cpp |
| 0976 |
Largest Perimeter Triangle |
Easy |
cpp |
| 0983 |
Minimum Cost For Tickets |
Medium |
cpp |
| 1019 |
Next Greater Node In Linked List |
Medium |
cpp |
| 1030 |
Matrix Cells in Distance Order |
Easy |
cpp |
| 1049 |
Last Stone Weight II |
Medium |
cpp |
| 1054 |
Distant Barcodes |
Medium |
cpp |
| 1122 |
Relative Sort Array |
Easy |
cpp |
| 1143 |
Longest Common Subsequence |
Medium |
cpp |
| 1155 |
Number of Dice Rolls With Target Sum |
Medium |
cpp |
| 1171 |
Remove Zero Sum Consecutive Nodes from Linked List |
Medium |
cpp |
| 1223 |
Dice Roll Simulation |
Medium |
cpp |
| 1290 |
Convert Binary Number in a Linked List to Integer |
Easy |
cpp |
| 1305 |
All Elements in Two Binary Search Trees |
Medium |
cpp |
| 1306 |
Jump Game III |
Medium |
cpp |
| 1329 |
Sort the Matrix Diagonally |
Medium |
cpp |
| 1333 |
Filter Restaurants by Vegan-Friendly, Price and Distance |
Medium |
cpp |
| 1353 |
Maximum Number of Events That Can Be Attended |
Medium |
cpp |
| 1356 |
Sort Integers by The Number of 1 Bits |
Easy |
cpp |
| 1366 |
Rank Teams by Votes |
Medium |
cpp |
| 1367 |
Linked List in Binary Tree |
Medium |
cpp |
| 1370 |
Increasing Decreasing String |
Easy |
cpp |