| 0001 |
Two Sum |
Python |
Easy |
| 0002 |
Add Two Numbers |
Python, C++ |
Medium |
| 0003 |
Longest Substring Without Repeating Characters |
Python |
Medium |
| 0004 |
Median of Two Sorted Arrays |
Python |
Hard |
| 0005 |
Longest Palindromic Substring |
Python |
Medium |
| 0006 |
ZigZag Conversion |
Python |
Medium |
| 0007 |
Reverse Integer |
Python |
Medium |
| 0008 |
String to Integer (atoi) |
Python |
Medium |
| 0009 |
Palindrome Number |
C++ |
Easy |
| 0010 |
Regular Expression Matching |
Python |
Hard |
| 0011 |
Container With Most Water |
Python |
Medium |
| 0012 |
Integer to Roman |
Python |
Medium |
| 0013 |
Roman to Integer |
Python, C++ |
Easy |
| 0014 |
Longest Common Prefix |
Python, C++ |
Easy |
| 0015 |
3Sum |
Python |
Medium |
| 0016 |
3Sum Closest |
Python |
Medium |
| 0017 |
Letter Combinations of a Phone Number |
Python |
Medium |
| 0018 |
4Sum |
Python |
Medium |
| 0019 |
Remove Nth Node From End of List |
Python |
Medium |
| 0020 |
Valid Parentheses |
Python |
Easy |
| 0021 |
Merge Two Sorted Lists |
Python |
Easy |
| 0022 |
Generate Parentheses |
Python |
Medium |
| 0023 |
Merge k Sorted Lists |
Python |
Hard |
| 0024 |
Swap Nodes in Pairs |
Python |
Medium |
| 0025 |
Reverse Nodes in k-Group |
Python |
Hard |
| 0026 |
Remove Duplicates from Sorted Array |
Python |
Easy |
| 0027 |
Remove Element |
Python |
Easy |
| 0028 |
Implement strStr() |
Python |
Easy |
| 0029 |
Divide Two Integers |
Python |
Medium |
| 0030 |
Substring with Concatenation of All Words |
Python |
Hard |
| 0031 |
Next Permutation |
Python |
Medium |
| 0032 |
Longest Valid Parentheses |
Python |
Hard |
| 0033 |
Search in Rotated Sorted Array |
Python |
Medium |
| 0034 |
Find First and Last Position of Element in Sorted Array |
Python |
Medium |
| 0035 |
Search Insert Position |
Python |
Easy |
| 0036 |
Valid Sudoku |
Python |
Medium |
| 0037 |
Sudoku Solver |
Python |
Hard |
| 0038 |
Count and Say |
Python |
Medium |
| 0039 |
Combination Sum |
Python |
Medium |
| 0040 |
Combination Sum II |
Python |
Medium |
| 0041 |
First Missing Positive |
Python |
Hard |
| 0042 |
Trapping Rain Water |
Python |
Hard |
| 0043 |
Multiply Strings |
Python |
Medium |
| 0044 |
Wildcard Matching |
Python |
Hard |
| 0045 |
Jump Game II |
C++ |
Hard |
| 0046 |
Permutations |
Python, C++ |
Medium |
| 0047 |
Permutations II |
Python |
Medium |
| 0048 |
Rotate Image |
Python, C++ |
Medium |
| 0049 |
Group Anagrams |
Python |
Medium |
| 0050 |
Pow(x, n) |
Python |
Medium |
| 0051 |
N Queens |
Python |
Hard |
| 0052 |
N Queens II |
Python |
Hard |
| 0053 |
Maximum Subarray |
Python |
Easy |
| 0054 |
Spiral Matrix |
Python |
Medium |
| 0055 |
Jump Game |
Python, C++ |
Medium |
| 0056 |
Merge Intervals |
Python |
Medium |
| 0057 |
Insert Interval |
Python |
Hard |
| 0058 |
Length of Last Word |
Python |
Easy |
| 0059 |
Spiral Matrix II |
Python, C++ |
Medium |
| 0061 |
Rotate List |
Python |
Medium |
| 0062 |
Unique Paths |
Python |
Medium |
| 0063 |
Unique Paths II |
Python |
Medium |
| 0064 |
Minimum Path Sum |
Python |
Medium |
| 0066 |
Plus One |
Python |
Easy |
| 0067 |
Add Binary |
Python |
Easy |
| 0068 |
Text Justification |
Python |
Hard |
| 0069 |
Sqrt(x) |
Python |
Easy |
| 0070 |
Climbing Stairs |
Python |
Easy |
| 0071 |
Simplify Path |
Python |
Medium |
| 0072 |
Edit Distance |
Python |
Medium |
| 0073 |
Set Matrix Zeroes |
Python |
Medium |
| 0074 |
Search a 2D Matrix |
Python |
Medium |
| 0075 |
Sort Colors |
Python |
Medium |
| 0076 |
Minimum Window Substring |
Python |
Hard |
| 0077 |
Combinations |
Python |
Medium |
| 0078 |
Subsets |
Python |
Medium |
| 0079 |
Word Search |
Python |
Medium |
| 0080 |
Remove Duplicates from Sorted Array II |
Python |
Medium |
| 0081 |
Search in Rotated Sorted Array II |
Python |
Medium |
| 0082 |
Remove Duplicates from Sorted List II |
Python |
Medium |
| 0083 |
Remove Duplicates from Sorted List |
Python, C++ |
Easy |
| 0084 |
Largest Rectangle in Histogram |
Python |
Hard |
| 0085 |
Maximal Rectangle |
Python |
Hard |
| 0086 |
Partition List |
Python |
Medium |
| 0087 |
Scramble String |
Python |
Hard |
| 0088 |
Merge Sorted Array |
Python, C++ |
Easy |
| 0089 |
Gray Code |
Python |
Medium |
| 0090 |
Subsets II |
Python |
Medium |
| 0091 |
Decode Ways |
Python |
Medium |
| 0092 |
Reverse Linked List II |
Python |
Medium |
| 0093 |
Restore IP Addresses |
Python |
Medium |
| 0094 |
Binary Tree Inorder Traversal |
Python |
Easy |
| 0095 |
Unique Binary Search Trees II |
Python |
Medium |
| 0096 |
Unique Binary Search Trees |
Python |
Medium |
| 0097 |
Interleaving String |
Python |
Medium |
| 0098 |
Validate Binary Search Tree |
Python |
Medium |
| 0099 |
Recover Binary Search Tree |
Python |
Medium |
| 0100 |
Same Tree |
Python |
Easy |
| 0101 |
Symmetric Tree |
Python, C++ |
Easy |
| 0102 |
Binary Tree Level Order Traversal |
Python |
Medium |
| 0103 |
Binary Tree Zigzag Level Order Traversal |
Python |
Medium |
| 0104 |
Maximum Depth of Binary Tree |
Python |
Easy |
| 0105 |
Construct Binary Tree from Preorder and Inorder Traversal |
Python |
Medium |
| 0106 |
Construct Binary Tree from Inorder and Postorder Traversal |
Python |
Medium |
| 0107 |
Binary Tree Level Order Traversal II |
Python |
Medium |
| 0108 |
Convert Sorted Array to Binary Search Tree |
Python |
Easy |
| 0110 |
Balanced Binary Tree |
Python |
Easy |
| 0111 |
Minimum Depth of Binary Tree |
Python |
Easy |
| 0112 |
Path Sum |
Python |
Easy |
| 0113 |
Path Sum II |
Python |
Medium |
| 0114 |
Flatten Binary Tree to Linked List |
Python |
Medium |
| 0115 |
Distinct Subsequences |
Python |
Hard |
| 0116 |
Populating Next Right Pointers in Each Node |
Python, C++ |
Medium |
| 0117 |
Populating Next Right Pointers in Each Node II |
Python |
Medium |
| 0118 |
Pascal's Triangle |
Python |
Easy |
| 0119 |
Pascal's Triangle II |
Python |
Easy |
| 0120 |
Triangle |
Python |
Medium |
| 0121 |
Best Time to Buy and Sell Stock |
Python |
Easy |
| 0122 |
Best Time to Buy and Sell Stock II |
Python |
Medium |
| 0123 |
Best Time to Buy and Sell Stock III |
Python |
Hard |
| 0124 |
Binary Tree Maximum Path Sum |
Python |
Medium |
| 0125 |
Valid Palindrome |
Python |
Easy |
| 0126 |
Word Ladder II |
Python |
Hard |
| 0127 |
Word Ladder |
Python |
Medium |
| 0128 |
Longest Consecutive Sequence |
Python |
Hard |
| 0129 |
Sum Root to Leaf Numbers |
Python |
Medium |
| 0130 |
Surrounded Regions |
Python |
Medium |
| 0131 |
Palindrome Partitioning |
Python |
Medium |
| 0132 |
Palindrome Partitioning II |
Python |
Hard |
| 0133 |
Clone Graph |
Python |
Medium |
| 0134 |
Gas Station |
Python |
Medium |
| 0135 |
Candy |
Python |
Hard |
| 0136 |
Single Number |
Python |
Easy |
| 0137 |
Single Number II |
Python |
Medium |
| 0138 |
Copy List with Random Pointer |
Python |
Medium |
| 0139 |
Word Break |
Python |
Medium |
| 0140 |
Word Break II |
Python |
Hard |
| 0141 |
Linked List Cycle |
Python |
Easy |
| 0142 |
Linked List Cycle II |
Python |
Medium |
| 0143 |
Reorder List |
Python |
Medium |
| 0144 |
Binary Tree Preorder Traversal |
Python |
Easy |
| 0145 |
Binary Tree Postorder Traversal |
Python |
Easy |
| 0146 |
LRU Cache |
Python |
Medium |
| 0148 |
Sort List |
Python |
Medium |
| 0149 |
Max Points on a Line |
Python |
Hard |
| 0150 |
Evaluate Reverse Polish Notation |
Python |
Medium |
| 0151 |
Reverse Words in a String |
Python |
Medium |
| 0152 |
Maximum Product Subarray |
Python |
Medium |
| 0153 |
Find Minimum in Rotated Sorted Array |
Python |
Medium |
| 0155 |
Min Stack |
Python |
Easy |
| 0159 |
Longest Substring with At Most Two Distinct Characters |
Python |
Medium |
| 0160 |
Intersection of Two Linked Lists |
Python |
Easy |
| 0162 |
Find Peak Element |
Python |
Medium |
| 0165 |
Compare Version Numbers |
Python |
Medium |
| 0166 |
Fraction to Recurring Decimal |
Python |
Medium |
| 0167 |
Two Sum II - Input array is sorted |
Python |
Easy |
| 0168 |
Excel Sheet Column Title |
Python |
Easy |
| 0169 |
Majority Element |
Python |
Easy |
| 0170 |
Two Sum III - Data structure design |
Python |
Easy |
| 0172 |
Factorial Trailing Zeroes |
Python |
Medium |
| 0173 |
Binary Search Tree Iterator |
Python |
Medium |
| 0179 |
Largest Number |
Python |
Medium |
| 0188 |
Best Time to Buy and Sell Stock IV |
Python |
Hard |
| 0189 |
Rotate Array |
C++ |
Medium |
| 0190 |
Reverse Bits |
Python, C++ |
Easy |
| 0191 |
Number of 1 Bits |
Python |
Easy |
| 0198 |
House Robber |
Python |
Easy |
| 0199 |
Binary Tree Right Side View |
Python |
Medium |
| 0200 |
Number of Islands |
Python |
Medium |
| 0201 |
Bitwise AND of Numbers Range |
Python |
Medium |
| 0202 |
Happy Number |
Python |
Easy |
| 0203 |
Remove Linked List Elements |
Python, C++ |
Easy |
| 0205 |
Isomorphic Strings |
Python |
Easy |
| 0206 |
Reverse Linked List |
Python |
Easy |
| 0207 |
Course Schedule |
Python |
Medium |
| 0208 |
Implement Trie (Prefix Tree) |
Python |
Medium |
| 0209 |
Minimum Size Subarray Sum |
Python |
Medium |
| 0210 |
Course Schedule II |
Python |
Medium |
| 0211 |
Design Add and Search Words Data Structure |
Python |
Medium |
| 0212 |
Word Search II |
Python |
Hard |
| 0213 |
House Robber II |
Python, C++ |
Medium |
| 0214 |
Shortest Palindrome |
Python |
Hard |
| 0215 |
Kth Largest Element in an Array |
Python |
Medium |
| 0216 |
Combination Sum III |
Python |
Medium |
| 0217 |
Contains Duplicate |
Python |
Easy |
| 0218 |
The Skyline Problem |
Python |
Hard |
| 0219 |
Contains Duplicate II |
Python |
Easy |
| 0221 |
Maximal Square |
Python |
Medium |
| 0222 |
Count Complete Tree Nodes |
Python |
Easy |
| 0224 |
Basic Calculator |
Python |
Hard |
| 0225 |
Implement Stack using Queues |
Python |
Easy |
| 0226 |
Invert Binary Tree |
Python |
Easy |
| 0227 |
Basic Calculator II |
Python |
Medium |
| 0228 |
Summary Ranges |
Python |
Easy |
| 0229 |
Majority Element II |
Python |
Medium |
| 0230 |
Kth Smallest Element in a BST |
Python |
Medium |
| 0231 |
Power of Two |
C++ |
Easy |
| 0232 |
Implement Queue using Stacks |
Python |
Easy |
| 0234 |
Palindrome Linked List |
Python |
Easy |
| 0235 |
Lowest Common Ancestor of a Binary Search Tree |
Python |
Easy |
| 0236 |
Lowest Common Ancestor of a Binary Tree |
Python |
Medium |
| 0237 |
Delete Node in a Linked List |
Python |
Medium |
| 0238 |
Product of Array Except Self |
Python |
Medium |
| 0239 |
Sliding Window Maximum |
Python |
Hard |
| 0240 |
Search a 2D Matrix II |
Python |
Medium |
| 0241 |
Different Ways to Add Parentheses |
Python |
Medium |
| 0242 |
Valid Anagram |
Python |
Easy |
| 0244 |
Shortest Word Distance II |
Python |
Medium |
| 0246 |
Strobogrammatic Number |
Python |
Easy |
| 0249 |
Group Shifted Strings |
Python |
Medium |
| 0250 |
Count Univalue Subtrees |
Python |
Medium |
| 0252 |
Meeting Rooms |
Python |
Easy |
| 0253 |
Meeting Rooms II |
Python |
Medium |
| 0254 |
Factor Combinations |
Python |
Medium |
| 0255 |
Verify Preorder Sequence in Binary Search Tree |
Python |
Medium |
| 0256 |
Paint House |
Python |
Medium |
| 0257 |
Binary Tree Paths |
Python |
Easy |
| 0259 |
3Sum Smaller |
Python |
Medium |
| 0260 |
Single Number III |
Python |
Medium |
| 0261 |
Graph Valid Tree |
Python |
Medium |
| 0263 |
Ugly Number |
Python |
Easy |
| 0264 |
Ugly Number II |
Python |
Medium |
| 0265 |
Paint House II |
Python |
Hard |
| 0266 |
Palindrome Permutation |
Python |
Easy |
| 0268 |
Missing Number |
Python |
Easy |
| 0269 |
Alien Dictionary |
Python |
Hard |
| 0270 |
Closest Binary Search Tree Value |
Python |
Easy |
| 0271 |
Encode and Decode Strings |
Python |
Medium |
| 0272 |
Closest Binary Search Tree Value II |
Python |
Hard |
| 0273 |
Integer to English Words |
Python |
Hard |
| 0274 |
H-Index |
Python |
Medium |
| 0276 |
Paint Fence |
Python |
Medium |
| 0277 |
Find the Celebrity |
Python |
Medium |
| 0278 |
First Bad Version |
Python |
Easy |
| 0279 |
Perfect Squares |
Python |
Medium |
| 0283 |
Move Zeroes |
Python, C++ |
Easy |
| 0285 |
Inorder Successor in BST |
Python |
Medium |
| 0286 |
Walls and Gates |
Python |
Medium |
| 0287 |
Find the Duplicate Number |
Python |
Medium |
| 0290 |
Word Pattern |
Python |
Easy |
| 0291 |
Word Pattern II |
Python |
Medium |
| 0293 |
Flip Game |
Python |
Easy |
| 0295 |
Find Median from Data Stream |
Python |
Hard |
| 0296 |
Best Meeting Point |
Python |
Hard |
| 0297 |
Serialize and Deserialize Binary Tree |
Python |
Hard |
| 0298 |
Binary Tree Longest Consecutive Sequence |
Python |
Medium |
| 0299 |
Bulls and Cows |
Python |
Medium |
| 0300 |
Longest Increasing Subsequence |
Python |
Medium |
| 0301 |
Remove Invalid Parentheses |
Python |
Hard |
| 0302 |
Smallest Rectangle Enclosing Black Pixels |
Python |
Hard |
| 0303 |
Range Sum Query - Immutable |
Python |
Easy |
| 0304 |
Range Sum Query 2D - Immutable |
Python |
Medium |
| 0305 |
Number of Islands II |
Python |
Hard |
| 0307 |
Range Sum Query - Mutable |
Python |
Medium |
| 0309 |
Best Time to Buy and Sell Stock with Cooldown |
Python |
Medium |
| 0310 |
Minimum Height Trees |
Python |
Medium |
| 0311 |
Sparse Matrix Multiplication |
Python |
Medium |
| 0312 |
Burst Balloons |
Python |
Hard |
| 0314 |
Binary Tree Vertical Order Traversal |
Python |
Medium |
| 0315 |
Count of Smaller Numbers After Self |
Python |
Hard |
| 0316 |
Remove Duplicate Letters |
Python |
Hard |
| 0317 |
Shortest Distance from All Buildings |
Python |
Hard |
| 0320 |
Generalized Abbreviation |
Python |
Medium |
| 0322 |
Coin Change |
Python |
Medium |
| 0323 |
Number of Connected Components in an Undirected Graph |
Python |
Medium |
| 0325 |
Maximum Size Subarray Sum Equals k |
Python |
Medium |
| 0326 |
Power of Three |
Python |
Easy |
| 0327 |
Count of Range Sum |
Python |
Hard |
| 0328 |
Odd Even Linked List |
Python |
Medium |
| 0329 |
Longest Increasing Path in a Matrix |
Python |
Hard |
| 0330 |
Patching Array |
Python |
Hard |
| 0331 |
Verify Preorder Serialization of a Binary Tree |
Python |
Medium |
| 0332 |
Reconstruct Itinerary |
Python |
Medium |
| 0334 |
Increasing Triplet Subsequence |
Python |
Medium |
| 0337 |
House Robber III |
Python |
Medium |
| 0338 |
Counting Bits |
Python |
Medium |
| 0339 |
Nested List Weight Sum |
Python |
Medium |
| 0340 |
Longest Substring with At Most K Distinct Characters |
Python |
Medium |
| 0341 |
Flatten Nested List Iterator |
Python |
Medium |
| 0342 |
Power of Four |
Python |
Easy |
| 0343 |
Integer Break |
Python |
Medium |
| 0344 |
Reverse String |
Python |
Easy |
| 0345 |
Reverse Vowels of a String |
Python |
Easy |
| 0346 |
Moving Average from Data Stream |
Python |
Easy |
| 0347 |
Top K Frequent Elements |
Python |
Medium |
| 0348 |
Design Tic-Tac-Toe |
Python |
Medium |
| 0349 |
Intersection of Two Arrays |
Python |
Easy |
| 0350 |
Intersection of Two Arrays II |
Python |
Easy |
| 0351 |
Android Unlock Patterns |
Python |
Medium |
| 0352 |
Data Stream as Disjoint Intervals |
Python |
Hard |
| 0353 |
Domino and Tromino Tiling |
Python |
Medium |
| 0354 |
Russian Doll Envelopes |
Python |
Hard |
| 0355 |
Design Twitter |
Python |
Medium |
| 0358 |
Rearrange String k Distance Apart |
Python |
Hard |
| 0359 |
Logger Rate Limiter |
Python |
Easy |
| 0361 |
Bomb Enemy |
Python |
Medium |
| 0362 |
Design Hit Counter |
Python |
Medium |
| 0364 |
Nested List Weight Sum II |
Python |
Medium |
| 0366 |
Find Leaves of Binary Tree |
Python |
Medium |
| 0368 |
Largest Divisible Subset |
Python |
Medium |
| 0370 |
Range Addition |
Python |
Medium |
| 0371 |
Sum of Two Integers |
Python |
Medium |
| 0373 |
Find K Pairs with Smallest Sums |
Python |
Medium |
| 0374 |
Guess Number Higher or Lower |
Python |
Easy |
| 0377 |
Combination Sum IV |
Python |
Medium |
| 0378 |
Kth Smallest Element in a Sorted Matrix |
Python |
Medium |
| 0380 |
Insert Delete GetRandom O(1) |
Python |
Medium |
| 0383 |
Ransom Note |
Python |
Easy |
| 0386 |
Lexicographical Numbers |
Python |
Medium |
| 0387 |
First Unique Character in a String |
Python |
Easy |
| 0388 |
Longest Absolute File Path |
Python |
Medium |
| 0389 |
Find the Difference |
Python |
Easy |
| 0390 |
Elimination Game |
Python |
Medium |
| 0391 |
Perfect Rectangle |
Python |
Hard |
| 0392 |
Is Subsequence |
Python |
Easy |
| 0393 |
UTF-8 Validation |
Python |
Medium |
| 0394 |
Decode String |
Python |
Medium |
| 0395 |
Longest Substring with At Least K Repeating Characters |
Python |
Medium |
| 0396 |
Rotate Function |
Python |
Medium |
| 0397 |
Integer Replacement |
Python |
Medium |
| 0398 |
Random Pick Index |
Python |
Medium |
| 0399 |
Evaluate Division |
Python |
Medium |
| 0400 |
Nth Digit |
Python |
Medium |
| 0401 |
Binary Watch |
Python |
Easy |
| 0402 |
Remove K Digits |
Python |
Medium |
| 0403 |
Frog Jump |
Python |
Hard |
| 0404 |
Sum of Left Leaves |
Python |
Easy |
| 0405 |
Convert a Number to Hexadecimal |
Python |
Easy |
| 0406 |
Queue Reconstruction by Height |
Python |
Medium |
| 0407 |
Trapping Rain Water II |
Python |
Hard |
| 0408 |
Valid Word Abbreviation |
Python |
Easy |
| 0409 |
Longest Palindrome |
Python |
Easy |
| 0410 |
Split Array Largest Sum |
Python |
Hard |
| 0414 |
Third Maximum Number |
Python |
Easy |
| 0416 |
Partition Equal Subset Sum |
Python |
Medium |
| 0417 |
Pacific Atlantic Water Flow |
Python |
Medium |
| 0424 |
Longest Repeating Character Replacement |
Python |
Medium |
| 0425 |
Word Squares |
Python |
Hard |
| 0426 |
Convert Binary Search Tree to Sorted Doubly Linked List |
Python |
Medium |
| 0427 |
Construct Quad Tree |
Python |
Medium |
| 0432 |
All O`one Data Structure |
Python |
Hard |
| 0433 |
Minimum Genetic Mutation |
Python |
Medium |
| 0435 |
Non-overlapping Intervals |
Python |
Medium |
| 0436 |
Find Right Interval |
Python |
Medium |
| 0437 |
Path Sum III |
Python |
Medium |
| 0438 |
Find All Anagrams in a String |
Python |
Medium |
| 0439 |
Ternary Expression Parser |
Python |
Medium |
| 0440 |
K-th Smallest in Lexicographical Order |
Python |
Hard |
| 0442 |
Find All Duplicates in an Array |
Python |
Medium |
| 0443 |
String Compression |
Python |
Medium |
| 0444 |
Sequence Reconstruction |
Python |
Medium |
| 0445 |
Add Two Numbers II |
Python |
Medium |
| 0446 |
Arithmetic Slices II - Subsequence |
Python |
Hard |
| 0449 |
Serialize and Deserialize BST |
Python |
Medium |
| 0450 |
Delete Node in a BST |
Python |
Medium |
| 0451 |
Sort Characters By Frequency |
Python |
Medium |
| 0452 |
Minimum Number of Arrows to Burst Balloons |
Python |
Medium |
| 0455 |
Assign Cookies |
Python |
Easy |
| 0456 |
132 Pattern |
Python |
Medium |
| 0457 |
Circular Array Loop |
Python |
Medium |
| 0458 |
Poor Pigs |
Python |
Hard |
| 0459 |
Repeated Substring Pattern |
Python |
Easy |
| 0460 |
LFU Cache |
Python |
Hard |
| 0463 |
Island Perimeter |
Python |
Easy |
| 0465 |
Optimal Account Balancing |
Python |
Hard |
| 0473 |
Matchsticks to Square |
Python |
Medium |
| 0474 |
Ones and Zeroes |
Python |
Medium |
| 0475 |
Heaters |
Python |
Medium |
| 0476 |
Number Complement |
Python |
Easy |
| 0480 |
Sliding Window Median |
Python |
Hard |
| 0485 |
Max Consecutive Ones |
Python |
Easy |
| 0486 |
Predict the Winner |
Python |
Medium |
| 0487 |
Max Consecutive Ones II |
Python |
Medium |
| 0489 |
Robot Room Cleaner |
Python |
Hard |
| 0490 |
The Maze |
Python |
Medium |
| 0491 |
Non-decreasing Subsequences |
Python |
Medium |
| 0493 |
Reverse Pairs |
Python |
Hard |
| 0494 |
Target Sum |
Python |
Medium |
| 0496 |
Next Greater Element I |
Python |
Easy |
| 0498 |
Diagonal Traverse |
Python |
Medium |
| 0499 |
The Maze III |
Python |
Hard |
| 0501 |
Find Mode in Binary Search Tree |
Python |
Easy |
| 0502 |
IPO |
Python |
Hard |
| 0505 |
The Maze II |
Python |
Medium |
| 0506 |
Relative Ranks |
Python |
Easy |
| 0509 |
Fibonacci Number |
Python |
Easy |
| 0510 |
Inorder Successor in BST II |
Python |
Medium |
| 0513 |
Find Bottom Left Tree Value |
Python |
Medium |
| 0514 |
Freedom Trail |
Python |
Hard |
| 0515 |
Find Largest Value in Each Tree Row |
Python |
Medium |
| 0516 |
Longest Palindromic Subsequence |
Python |
Medium |
| 0518 |
Coin Change 2 |
Python |
Medium |
| 0523 |
Continuous Subarray Sum |
Python |
Medium |
| 0525 |
Contiguous Array |
Python |
Medium |
| 0527 |
Word Abbreviation |
Python |
Hard |
| 0528 |
Random Pick with Weight |
Python |
Medium |
| 0530 |
Minimum Absolute Difference in BST |
Python |
Easy |
| 0532 |
K-diff Pairs in an Array |
Python |
Easy |
| 0539 |
Minimum Time Difference |
Python |
Medium |
| 0540 |
Single Element in a Sorted Array |
Python |
Medium |
| 0542 |
01 Matrix |
Python |
Medium |
| 0543 |
Diameter of Binary Tree |
Python |
Easy |
| 0545 |
Boundary of Binary Tree |
Python |
Medium |
| 0547 |
Number of Provinces |
Python |
Medium |
| 0549 |
Binary Tree Longest Consecutive Sequence II |
Python |
Medium |
| 0552 |
Student Attendance Record II |
Python |
Hard |
| 0557 |
Reverse Words in a String III |
C++ |
Easy |
| 0560 |
Subarray Sum Equals K |
Python |
Medium |
| 0561 |
Array Partition I |
Python |
Easy |
| 0564 |
Find the Closest Palindrome |
Python |
Hard |
| 0566 |
Reshape the Matrix |
C++ |
Easy |
| 0567 |
Permutation in String |
Python |
Medium |
| 0570 |
Managers with at Least 5 Direct Reports |
SQL |
Medium |
| 0572 |
Subtree of Another Tree |
Python |
Easy |
| 0573 |
Squirrel Simulation |
Python |
Medium |
| 0576 |
Out of Boundary Paths |
Python |
Medium |
| 0577 |
Employee Bonus |
SQL |
Easy |
| 0584 |
Find Customer Referee |
SQL |
Easy |
| 0588 |
Design In-Memory File System |
Python |
Hard |
| 0590 |
N-ary Tree Postorder Traversal |
Python |
Easy |
| 0592 |
Fraction Addition and Subtraction |
Python |
Medium |
| 0595 |
Big Countries |
SQL |
Easy |
| 0605 |
Can Place Flowers |
Python |
Easy |
| 0606 |
Construct String from Binary Tree |
Python |
Easy |
| 0609 |
Find Duplicate File in System |
Python |
Medium |
| 0611 |
Valid Triangle Number |
Python |
Medium |
| 0616 |
Add Bold Tag in String |
Python |
Medium |
| 0617 |
Merge Two Binary Trees |
C++ |
Easy |
| 0620 |
Not Boring Movies |
SQL |
Easy |
| 0621 |
Task Scheduler |
Python |
Medium |
| 0623 |
Add One Row to Tree |
Python |
Medium |
| 0624 |
Maximum Distance in Arrays |
Python |
Easy |
| 0629 |
K Inverse Pairs Array |
Python |
Hard |
| 0632 |
Smallest Range Covering Elements from K Lists |
Python |
Hard |
| 0633 |
Sum of Square Numbers |
Python |
Medium |
| 0636 |
Exclusive Time of Functions |
Python |
Medium |
| 0637 |
Average of Levels in Binary Tree |
Python |
Easy |
| 0641 |
Design Circular Deque |
Python |
Medium |
| 0643 |
Maximum Average Subarray I |
Python |
Easy |
| 0645 |
Set Mismatch |
Python |
Easy |
| 0646 |
Maximum Length of Pair Chain |
Python |
Medium |
| 0647 |
Palindromic Substrings |
Python |
Medium |
| 0648 |
Replace Words |
Python |
Medium |
| 0649 |
Dota2 Senate |
Python |
Medium |
| 0650 |
2 Keys Keyboard |
Python |
Medium |
| 0653 |
Two Sum IV - Input is a BST |
Python, C++ |
Easy |
| 0656 |
Coin Path |
Python |
Hard |
| 0658 |
Find K Closest Elements |
Python |
Medium |
| 0661 |
Image Smoother |
Python |
Easy |
| 0662 |
Maximum Width of Binary Tree |
Python |
Medium |
| 0664 |
Strange Printer |
Python |
Hard |
| 0666 |
Path Sum IV |
Python |
Medium |
| 0670 |
Maximum Swap |
Python |
Medium |
| 0677 |
Map Sum Pairs |
Python |
Medium |
| 0678 |
Valid Parenthesis String |
Python |
Medium |
| 0679 |
24 Game |
Python |
Hard |
| 0680 |
Valid Palindrome II |
Python |
Easy |
| 0684 |
Redundant Connection |
Python |
Medium |
| 0689 |
Maximum Sum of 3 Non-Overlapping Subarrays |
Python |
Hard |
| 0692 |
Top K Frequent Words |
Python |
Medium |
| 0694 |
Number of Distinct Islands |
Python |
Medium |
| 0695 |
Max Area of Island |
Python, C++ |
Medium |
| 0700 |
Search in a Binary Search Tree |
C++ |
Easy |
| 0701 |
Insert into a Binary Search Tree |
C++ |
Medium |
| 0702 |
Search in a Sorted Array of Unknown Size |
Python |
Medium |
| 0703 |
Kth Largest Element in a Stream |
Python |
Easy |
| 0704 |
Binary Search |
Pythoon |
Easy |
| 0705 |
Design HashSet |
Python |
Easy |
| 0706 |
Design HashMap |
Python |
Easy |
| 0712 |
Minimum ASCII Delete Sum for Two Strings |
Python |
Medium |
| 0713 |
Subarray Product Less Than K |
Python |
Medium |
| 0714 |
Best Time to Buy and Sell Stock with Transaction Fee |
Python |
Medium |
| 0715 |
Range Module |
Python |
Hard |
| 0716 |
Max Stack |
Python |
Hard |
| 0717 |
1-bit and 2-bit Characters |
Python |
Easy |
| 0718 |
Maximum Length of Repeated Subarray |
Python |
Medium |
| 0719 |
Find K-th Smallest Pair Distance |
Python |
Hard |
| 0721 |
Accounts Merge |
Python |
Medium |
| 0723 |
Candy Crush |
Python |
Medium |
| 0724 |
Find Pivot Index |
Python |
Easy |
| 0725 |
Split Linked List in Parts |
Python |
Medium |
| 0726 |
Number of Atoms |
Python |
Hard |
| 0727 |
Minimum Window Subsequence |
Python |
Hard |
| 0729 |
My Calendar I |
Python |
Medium |
| 0731 |
My Calendar II |
Python |
Medium |
| 0733 |
Flood Fill |
Python |
Easy |
| 0734 |
Sentence Similarity |
Python |
Easy |
| 0735 |
Asteroid Collision |
Python |
Medium |
| 0737 |
Sentence Similarity II |
Python |
Medium |
| 0739 |
Daily Temperatures |
Python |
Medium |
| 0740 |
Delete and Earn |
Python |
Medium |
| 0741 |
Cherry Pickup |
Python |
Hard |
| 0743 |
Network Delay Time |
Python |
Medium |
| 0744 |
Find Smallest Letter Greater Than Target |
Python |
Easy |
| 0746 |
Min Cost Climbing Stairs |
Python |
Easy |
| 0752 |
Open the Lock |
Python |
Medium |
| 0756 |
Pyramid Transition Matrix |
Python |
Medium |
| 0757 |
Set Intersection Size At Least Two |
Python |
Medium |
| 0758 |
Bold Words in String |
Python |
Easy |
| 0759 |
Employee Free Time |
Python |
Hard |
| 0767 |
Reorganize String |
Python |
Medium |
| 0769 |
Max Chunks To Make Sorted |
Python |
Medium |
| 0773 |
Sliding Puzzle |
Python |
Hard |
| 0774 |
Minimize Max Distance to Gas Station |
Python |
Hard |
| 0775 |
Global and Local Inversions |
Python |
Medium |
| 0776 |
Split BST |
Python |
Medium |
| 0778 |
Swim in Rising Water |
Python |
Hard |
| 0779 |
K-th Symbol in Grammar |
Python |
Medium |
| 0781 |
Rabbits in Forest |
Python |
Medium |
| 0784 |
Letter Case Permutation |
C++ |
Medium |
| 0786 |
K-th Smallest Prime Fraction |
Python |
Medium |
| 0787 |
Cheapest Flights Within K Stops |
Python |
Medium |
| 0790 |
Domino and Tromino Tiling |
Python |
Medium |
| 0791 |
Custom Sort String |
Python |
Medium |
| 0794 |
Valid Tic-Tac-Toe State |
Python |
Medium |
| 0797 |
All Paths From Source to Target |
Python |
Medium |
| 0799 |
Champagne Tower |
Python |
Medium |
| 0802 |
Find Eventual Safe States |
Python |
Medium |
| 0807 |
Max Increase to Keep City Skyline |
Python |
Medium |
| 0808 |
Soup Servings |
Python |
Medium |
| 0812 |
Largest Triangle Area |
Python |
Easy |
| 0814 |
Binary Tree Pruning |
Python |
Medium |
| 0815 |
Bus Routes |
Python |
Hard |
| 0817 |
Linked List Components |
Python |
Medium |
| 0823 |
Binary Trees With Factors |
Python |
Medium |
| 0826 |
Most Profit Assigning Work |
Python |
Medium |
| 0827 |
Making A Large Island |
Python |
Hard |
| 0831 |
Masking Personal Information |
Python |
Medium |
| 0832 |
Flipping an Image |
Python |
Easy |
| 0833 |
Find and Replace in String |
Python |
Medium |
| 0834 |
Sum of Distances in Tree |
Python |
Hard |
| 0838 |
Push Dominoes |
Python |
Medium |
| 0840 |
Magic Squares In Grid |
Python |
Medium |
| 0841 |
Keys and Rooms |
Python |
Medium |
| 0844 |
Backspace String Compare |
Python |
Easy |
| 0845 |
Longest Mountain in Array |
Python |
Medium |
| 0846 |
Hand of Straights |
Python |
Medium |
| 0847 |
Shortest Path Visiting All Nodes |
Python |
Hard |
| 0851 |
Loud and Rich |
Python |
Medium |
| 0852 |
Peak Index in a Mountain Array |
Python |
Easy |
| 0856 |
Score of Parentheses |
Python |
Medium |
| 0857 |
Minimum Cost to Hire K Workers |
Python |
Hard |
| 0860 |
Lemonade Change |
Python |
Easy |
| 0861 |
Score After Flipping Matrix |
Python |
Medium |
| 0862 |
Shortest Subarray with Sum at Least K |
Python |
Hard |
| 0863 |
All Nodes Distance K in Binary Tree |
Python |
Medium |
| 0865 |
Smallest Subtree With All the Deepest Nodes |
Python |
Medium |
| 0867 |
Transpose Matrix |
Python |
Easy |
| 0869 |
Reordered Power of 2 |
Python |
Medium |
| 0871 |
Minimum Number of Refueling Stops |
Python |
Hard |
| 0872 |
Leaf-Similar Trees |
Python |
Easy |
| 0873 |
Length of Longest Fibonacci Subsequence |
Python |
Medium |
| 0874 |
Walking Robot Simulation |
Python |
Medium |
| 0875 |
Koko Eating Bananas |
Python |
Medium |
| 0876 |
Middle of the Linked List |
Python |
Easy |
| 0880 |
Decoded String at Index |
Python |
Medium |
| 0881 |
Boats to Save People |
Python |
Medium |
| 0884 |
Uncommon Words from Two Sentences |
Python |
Easy |
| 0885 |
Spiral Matrix III |
Python |
Medium |
| 0888 |
Fair Candy Swap |
Python |
Easy |
| 0889 |
Construct Binary Tree from Preorder and Postorder Traversal |
Python |
Medium |
| 0890 |
Find and Replace Pattern |
Python |
Medium |
| 0894 |
All Possible Full Binary Trees |
Python |
Medium |
| 0895 |
Maximum Frequency Stack |
Python |
Hard |
| 0896 |
Monotonic Array |
Python |
Easy |
| 0900 |
RLE Iterator |
Python |
Medium |
| 0901 |
Online Stock Span |
Python |
Medium |
| 0904 |
Fruit Into Baskets |
Python |
Medium |
| 0905 |
Sort Array By Parity |
Python |
Easy |
| 0907 |
Sum of Subarray Minimums |
Python |
Medium |
| 0909 |
Snakes and Ladders |
Python |
Medium |
| 0912 |
Sort an Array |
Python |
Medium |
| 0915 |
Partition Array Into Disjoint Intervals |
Python |
Medium |
| 0916 |
Word Subsets |
Python |
Medium |
| 0918 |
Maximum Sum Circular Subarray |
Python |
Medium |
| 0920 |
Number of Music Playlists |
Python |
Hard |
| 0921 |
Minimum Add to Make Parentheses Valid |
Python |
Medium |
| 0924 |
Minimize Malware Spread |
Python |
Hard |
| 0930 |
Binary Subarrays With Sum |
Python |
Medium |
| 0931 |
Minimum Falling Path Sum |
Python |
Medium |
| 0933 |
Number of Recent Calls |
Python |
Easy |
| 0934 |
Shortest Bridge |
Python |
Medium |
| 0935 |
Knight Dialer |
Python |
Medium |
| 0938 |
Range Sum of BST |
Python |
Easy |
| 0939 |
Minimum Area Rectangle |
Python |
Medium |
| 0941 |
Valid Mountain Array |
Python |
Easy |
| 0944 |
Delete Columns to Make Sorted |
Python |
Easy |
| 0945 |
Minimum Increment to Make Array Unique |
Python |
Medium |
| 0946 |
Validate Stack Sequences |
Python |
Medium |
| 0947 |
Most Stones Removed with Same Row or Column |
Python |
Medium |
| 0948 |
Bag of Tokens |
Python |
Medium |
| 0949 |
Largest Time for Given Digits |
Python |
Medium |
| 0950 |
Reveal Cards In Increasing Order |
Python |
Medium |
| 0951 |
Flip Equivalent Binary Trees |
Python |
Medium |
| 0954 |
Array of Doubled Pairs |
Python |
Medium |
| 0955 |
Delete Columns to Make Sorted II |
Python |
Medium |
| 0958 |
Check Completeness of a Binary Tree |
Python |
Medium |
| 0959 |
Regions Cut By Slashes |
Python |
Medium |
| 0960 |
Delete Columns to Make Sorted III |
Python |
Hard |
| 0961 |
N-Repeated Element in Size 2N Array |
Python |
Easy |
| 0962 |
Maximum Width Ramp |
Python |
Medium |
| 0966 |
Vowel Spellchecker |
Python |
Medium |
| 0967 |
Numbers With Same Consecutive Differences |
Python |
Medium |
| 0969 |
Pancake Sorting |
Python |
Medium |
| 0973 |
K Closest Points to Origin |
Python |
Medium |
| 0974 |
Subarray Sums Divisible by K |
Python |
Medium |
| 0976 |
Largest Perimeter Triangle |
Python |
Easy |
| 0977 |
Squares of a Sorted Array |
Python |
Easy |
| 0978 |
Longest Turbulent Subarray |
Python |
Medium |
| 0979 |
Distribute Coins in Binary Tree |
Python |
Medium |
| 0981 |
Time Based Key-Value Store |
Python |
[Medium](./Readme/0981-time-based-key-value-store.git pullmd) |
| 0983 |
Minimum Cost for Tickets |
Python |
Medium |
| 0984 |
String Without AAA or BBB |
Python |
Medium |
| 0986 |
Interval List Intersections |
Python |
Medium |
| 0987 |
Vertical Order Traversal of a Binary Tree |
Python |
Medium |
| 0988 |
Smallest String Starting From Leaf |
Python |
Medium |
| 0992 |
Subarrays with K Different Integers |
Python |
Hard |
| 0993 |
Cousins in Binary Tree |
Python |
Easy |
| 0994 |
Rotting Oranges |
Python |
Medium |
| 0995 |
Minimum Number of K Consecutive Bit Flips |
Python |
Hard |
| 0997 |
Find the Town Judge |
Python |
Easy |
| 0998 |
Maximum Binary Tree II |
Python |
Medium |