| 001 |
Two Sum |
Python |
O(n) |
O(n) |
Easy |
| 015 |
3 Sum |
Python |
O(j*k) |
O(n) |
Medium |
| 016 |
3 Sum Closest |
Python |
|
|
Medium |
| 018 |
4 Sum |
Python |
$O(n^2)$ |
O(n) |
Medium |
| 026 |
Remove Duplicates from Sorted Array |
Python |
$O(n^2)$ |
O(1) |
Easy |
| 027 |
Remove Element |
Python |
O(n) |
O(1) |
Easy |
| 031 |
Next Permutation |
Python |
|
|
Medium |
| 035 |
Search Insert Position |
Python |
$O(log_2n)$ |
O(1) |
Easy |
| 041 |
First Missing Positive |
Python |
|
|
Hard |
| 048 |
Rotate Image |
Python |
O(n$log_2(n)$) |
O(1) |
Medium |
| 054 |
Spiral Matrix |
Python |
O(n) |
O(n) |
Medium |
| 059 |
Spiral Matrix II |
Python |
O(n) |
O(1) |
Medium |
| 066 |
Plus One |
Python |
O(n) |
O(n) |
Easy |
| 073 |
Set Matrix Zeroes |
Python |
|
|
Medium |
| 080 |
Remove Duplicates from Sorted Array II |
Python |
O(n) |
O(1) |
Medium |
| 118 |
Pascal's Triangle |
Python |
O(n) |
O(n) |
Easy |
| 119 |
Pascal's Triangle II |
Python |
O(n) |
O(k) |
Easy |
| 121 |
Best Time to Buy and Sell Stock |
Python |
O(n) |
O(1) |
Easy |
| 128 |
Longest Consecutive Sequence |
Python |
|
|
Hard |
| 153 |
Find Minimum in Rotated Sorted Array |
Python |
$O(log_2(n))$ |
O(1) |
Medium |
| 154 |
Find Minimum in Rotated Sorted Array II |
Python |
$O(log_2(n))-O(n)$ |
O(1) |
Hard |
| 157 |
Read N Characters Given Read4 |
Python |
|
|
Easy |
| 158 |
Read N Characters Given Read4 II - Call multiple times |
Python |
|
|
Hard |
| 162 |
Find Peak Element |
Python |
$O(log_2(n))$ |
O(1) |
Medium |
| 163 |
Missing Ranges |
Python |
|
|
Medium |
| 167 |
Two Sum II - Input array is sorted |
Python |
O(n) |
O(n) |
Easy |
| 169 |
Majority Element |
Python |
O(n) |
O(1) |
Easy |
| 189 |
Rotate Array |
Python |
O(k) |
O(1) |
Easy |
| 209 |
Minimum Size Subarray Sum |
Python |
|
|
Medium |
| 217 |
Contains Duplicate |
Python |
O(n) |
O(1) |
Easy |
| 215 |
Kth Largest Element in an Array |
Python |
O(n) |
O(1) |
Medium |
| 228 |
Summary Ranges |
Python |
|
|
Medium |
| 229 |
Majority Element II |
Python |
|
|
Medium |
| 238 |
Product of Array Except Self |
Python |
|
|
Medium |
| 240 |
Search a 2D Matrix II |
Python |
O(n) |
O(1) |
Medium |
| 243 |
Shortest Word Distance |
Python |
|
|
Easy |
| 245 |
Shortest Word Distance III |
Python |
|
|
Medium |
| 251 |
Flatten 2D Vector |
Python |
|
|
Medium |
| 268 |
Missing Number |
Python |
O(n) |
O(1) |
Medium |
| 277 |
Find the Celebrity |
Python |
|
|
Medium |
| 283 |
Move Zeroes |
Python |
O(n) |
O(1) |
Easy |
| 289 |
Game of Life |
Python |
|
|
Medium |
| 293 |
Flip Game |
Python |
|
|
Easy |
| 296 |
Best Meeting Point |
Python |
|
|
Hard |
| 311 |
Sparse Matrix Multiplication |
Python |
|
|
Medium |
| 334 |
Increasing Triplet Subsequence |
Python |
|
|
Medium |
| 370 |
Range Addition |
Python |
|
|
Medium |
| 396 |
Rotate Function |
Python |
|
|
Easy |
| 412 |
Fizz Buzz |
Python |
O(n) |
O(n) |
Easy |
| 414 |
Third Maximum Number |
Python |
|
|
Easy |
| 419 |
Battleships in a Board |
Python |
|
|
Medium |
| 422 |
Valid Word Square |
Python |
|
|
Easy |
| 442 |
Find All Duplicates in an Array |
Python |
|
|
Medium |
| 448 |
Find All Numbers Disappeared in an Array |
Python |
O(n) |
O(1) |
Easy |
| 485 |
Max Consecutive Ones |
Python |
O(n) |
O(1) |
Easy |
| 498 |
Diagonal Traverse |
Python |
O(n) |
O(n) |
Medium |
| 531 |
Lonely Pixel I |
Python |
|
|
Medium |
| 533 |
Lonely Pixel II |
Python |
|
|
Medium |
| 565 |
Array Nesting |
Python |
|
|
Medium |
| 566 |
Reshape the Matrix |
Python |
|
|
Easy |
| 581 |
Shortest Unsorted Continuous Subarray |
Python |
|
|
Easy |
| 605 |
Can Place Flowers |
Python |
|
|
Easy |
| 624 |
Maximum Distance in Arrays |
Python |
|
|
Easy |
| 643 |
Maximum Average Subarray I |
Python |
|
|
Easy |
| 644 |
Maximum Average Subarray II |
Python |
|
|
Hard Math |
| 661 |
Image Smoother |
Python |
|
|
Easy |
| 665 |
Non-decreasing Array |
Python |
|
|
Easy |
| 667 |
Beautiful Arrangement II |
Python |
|
|
Medium |
| 670 |
Maximum Swap |
Python |
|
|
Medium |
| 674 |
Longest Continuous Increasing Subsequence |
Python |
|
|
Easy |
| 683 |
K Empty Slots |
Python |
|
|
Hard |
| 697 |
Degree of an Array |
Python |
|
|
Easy |
| 713 |
Subarray Product Less Than K |
Python |
|
|
Medium |
| 717 |
1-bit and 2-bit Characters |
Python |
|
|
Easy |
| 723 |
Candy Crush |
Python |
|
|
Medium |
| 724 |
Find Pivot Index |
Python |
O(n) |
O(1) |
Easy |
| 729 |
My Calendar I |
Python |
|
|
Medium |
| 731 |
My Calendar II |
Python |
|
|
Medium |
| 732 |
My Calendar III |
Python |
|
|
Hard |
| 747 |
Largest Number At Least Twice of Others |
Python |
O(n) |
O(1) |
Easy |
| 755 |
Pour Water |
Python |
|
|
Medium |
| 766 |
Toeplitz Matrix |
Python |
|
|
Easy |
| 768 |
Max Chunks To Make Sorted II |
Python |
|
|
Hard |
| 769 |
Max Chunks To Make Sorted |
Python |
|
|
Medium |
| 778 |
Swim in Rising Water |
Python |
|
|
Hard |
| 792 |
Number of Matching Subsequences |
Python |
|
|
Medium |
| 794 |
Valid Tic-Tac-Toe State |
Python |
|
|
Medium |
| 795 |
Number of Subarrays with Bounded Maximum |
Python |
|
|
Medium |
| 803 |
Bricks Falling When Hit |
Python |
|
|
Hard |
| 807 |
Max Increase to Keep City Skyline |
Python |
|
|
Medium |
| 821 |
Shortest Distance to a Character |
Python |
O(n) |
O(1) |
Easy |
| 830 |
Positions of Large Groups |
Python |
|
|
Easy |
| 832 |
Flipping an Image |
Python |
O($n^2$) |
O(1) |
Easy |
| 835 |
Image Overlap |
Python |
|
|
Medium |
| 840 |
Magic Squares In Grid |
Python |
|
|
Easy |
| 842 |
Split Array into Fibonacci Sequence |
Python |
|
|
Medium |
| 845 |
Longest Mountain in Array |
Python |
|
|
Medium |
| 849 |
Maximize Distance to Closest Person |
Python |
|
|
Easy |
| 860 |
Lemonade Change |
Python |
|
|
Easy |
| 868 |
Transpose Matrix |
Python |
|
|
Easy |
| 889 |
Spiral Matrix III |
Python |
|
|
Medium |