1. Two Sum |
π’ Easy |
[Python3] [C++ Brute Force] [C++ Map] [C++ Two Pointers] |
2. Add Two Numbers |
π‘ Medium |
[C++] |
9. Palindrome Number |
π’ Easy |
[Python3] |
15. 3Sum |
π‘ Medium |
[C++] |
17. Letter Combinations of a Phone Number |
π‘ Medium |
[C++] |
18. 4Sum |
π‘ Medium |
[C++] |
20. Valid Parentheses |
π’ Easy |
[C++] |
26. Remove Duplicates from Sorted Array |
π’ Easy |
[C++ brute force] [C++(optimal)] |
27. Remove Element |
π’ Easy |
[C++ 1st approach] [C++ 2nd approach] |
31. Next Permutation |
π‘ Medium |
[C++] |
33. Search in Rotated Sorted Array |
π‘ Medium |
[C++] |
34. Find First and Last Position of Element in Sorted Array |
π‘ Medium |
[C++] |
35. Search Insert Position |
π’ Easy |
[C++] |
37. Sudoku Solver |
π΄ Hard |
[C++] |
39. Combination Sum |
π‘ Medium |
[C++] [C++(2nd approach)] |
40. Combination Sum II |
π‘ Medium |
[C++] [C++ 2nd Approach] |
42. Trapping Rain Water |
π΄ Hard |
[C++] |
46. Permutations |
π‘ Medium |
[C++] |
48. Rotate Image |
π‘ Medium |
[C++] |
49. Group Anagrams |
π‘ Medium |
[C++] |
50. Pow(x, n) |
π‘ Medium |
[C++] |
51. N-Queens |
π΄ Hard |
[C++] |
53. Maximum Subarray |
π’ Easy |
[C++] |
54. Spiral Matrix |
π‘ Medium |
[C++] |
56. Merge Intervals |
π‘ Medium |
[C++] |
59. Spiral Matrix II |
π‘ Medium |
[C++] |
73. Set Matrix Zeroes |
π‘ Medium |
[C++] |
74. Search a 2D Matrix |
π‘ Medium |
[C++] |
75.Sort colors |
π‘ Medium |
[C++(Brute force)] [C++(2nd approach)] [C++(DNF)] |
77. Combinations |
π‘ Medium |
[C++] |
78. Subsets |
π‘ Medium |
[C++] |
81. Search in Rotated Sorted Array II |
π‘ Medium |
[C++] |
84. Largest Rectangle in Histogram |
π΄ Hard |
[C++] |
85. Maximal Rectangle |
π΄ Hard |
[C++] |
90. Subsets II |
π‘ Medium |
[C++] [C++(2nd approach)] |
118. Pascal's Triangle |
π’ Easy |
[C++] |
121. Best Time to Buy and Sell Stock |
π’ Easy |
[C++(Brute Force)] [C++(Optimal)] |
128. Longest Consecutive Sequence |
π‘ Medium |
[C++(Brute Force)] [C++(better approach)] [C++(Optimal)] |
131. Palindrome Partitioning |
π‘ Medium |
[C++] |
136. Single Number |
π’ Easy |
[C++] |
150. Evaluate Reverse Polish Notation |
π‘ Medium |
[C++(Using Stack)] |
151. Reverse Words in a String |
π‘ Medium |
[C++] |
152. Maximum Product Subarray |
π‘ Medium |
[C++] |
153. Find Minimum in Rotated Sorted Array |
π‘ Medium |
[C++] |
155. Min Stack |
π‘ Medium |
[C++] |
162. Find Peak Element |
π‘ Medium |
[C++] |
167. Two Sum II |
π‘ Medium |
[C++] |
169. Majority Element |
π’ Easy |
[C++(map)] [C++(Sorting)] [C++(Moore's algo)] |
189. Rotate Array |
π‘ Medium |
[C++] [C++(Optimal)] |
206. Reverse LinkedList |
π’ Easy |
[C++(Using Stack)] [C++(Iterative)] |
215. Kth Largest Element in an Array |
π‘ Medium |
[C++(Heap)] |
216. Combination Sum III |
π‘ Medium |
[C++] |
217. Contains Duplicate |
π’ Easy |
[C++] |
225. Implement Stack using Queues |
π’ Easy |
[C++] |
229. Majority Element II |
π‘ Medium |
[C++] |
234. Palindrome Linked List |
π’ Easy |
[C++(Brute Force)] |
238. Product of Array Except Self |
π‘ Medium |
[C++] |
242. Valid Anagram |
π’ Easy |
[C++] |
268. Missing Number |
π’ Easy |
[C++] |
273. Integer To English Words |
π΄ Hard |
[C++] |
283. Move Zeroes |
π’ Easy |
[C++(Brute Force)] [C++(Optimal)] |
338. Counting Bits |
π‘ Medium |
[C++] |
343. Integer Break |
π‘ Medium |
[C++] |
347. Top K Frequent Elements |
π‘ Medium |
[C++] |
349. Intersection of Two Arrays |
π’ Easy |
[C++] |
389. Find the Difference |
π’ Easy |
[C++(Map)] [C++(XOR)] [C++)] |
402. Remove K Digits |
π‘ Medium |
[C++] |
410. Split Array Largest Sum |
π‘ Medium |
[C++] |
442. Find All Duplicates in an Array |
π‘ Medium |
[C++] |
476.Number Complement |
π’ Easy |
[C++] |
493. Reverse Pairs |
π΄ Hard |
[C++] |
496. Next Greater Element I |
π’ Easy |
[C++(Better Approach)] [C++(Optimal Approach)] |
503. Next Greater Element II |
π‘ Medium |
[C++] |
509. Fibonacci Number |
π’ Easy |
[C++] |
525.Contiguous Array |
π‘ Medium |
[C++] |
540. Single Element in a Sorted Array |
π‘ Medium |
[C++] |
560. Subarray Sum Equals K |
π‘ Medium |
[C++] |
624. Maximum Distance in Arrays |
π‘ Medium |
[C++] |
698. Partition to K Equal Sum Subsets |
π‘ Medium |
[C++] |
703. Kth Largest Element in a Stream |
π’ Easy |
[C++] |
704. Binary Search |
π’ Easy |
[C++] |
735. Asteroid Collision |
π‘ Medium |
[C++] |
821. Shortest Distance to a Character |
π’ Easy |
[C++] |
840. Magic Squares In Grid |
π‘ Medium |
[C++] |
860. Lemonade Change |
π’ Easy |
[C++] |
875. Koko Eating Bananas |
π‘ Medium |
[C++] |
876. Middle of a Linked List |
π’ Easy |
[C++ Brute Force] [C++ fast&slow ptr] [java] |
885. Spiral Matrix III |
π‘ Medium |
[C++] |
896. Monotonic Array |
π’ Easy |
[C++] |
901. Online Stock Span |
π‘ Medium |
[C++] |
905. Sort Array By Parity |
π’ Easy |
[C++] |
907. Sum of Subarray Minimums |
π‘ Medium |
[C++] |
912. Sort an Array |
π‘ Medium |
[C++] |
946. Validate Stack Sequences |
π‘ Medium |
[C++] |
977. Squares of a Sorted Array |
π’ Easy |
[C++] |
1006. Clumsy Factorial |
π‘ Medium |
[C++] |
1011. Capacity To Ship Packages Within D Days |
π‘ Medium |
[C++] |
1207. Unique Number of Occurrences |
π’ Easy |
[C++] |
1239. Maximum Length of a Concatenated String with Unique Characters |
π‘ Medium |
[C++] |
1283. Find the Smallest Divisor Given a Threshold |
π‘ Medium |
[C++] |
1299. Replace Elements with Greatest Element on Right Side |
π’ Easy |
[C++] |
1351. Count Negative Numbers in a Sorted Matrix |
π’ Easy |
[C++] |
1431. Kids with the greatest no. of candies |
π’ Easy |
[C++] |
1441. Build an Array With Stack Operations |
π’ Easy |
[C++] |
1460. Make Two Arrays Equal By Reversing Subaarrays |
π’ Easy |
[C++ Sort] [C++ Map] |
1464. Maximum Product of Two Elements in an Array |
π’ Easy |
[C++] |
1475. Final Prices With a Special Discount in a Shop |
π’ Easy |
[C++] |
1480. running sum |
π’ Easy |
[C++] |
1482. Minimum Number of Days to Make m Bouquets |
π‘ Medium |
[C++] |
1508. Range Sum of Sorted Subarray Sums |
π‘ Medium |
[C++ Brute Force] |
1512. Number of Good Pairs |
π’ Easy |
[C++] [C++ Map] |
1539. Kth Missing Positive Number |
π’ Easy |
[C++] |
1552. Magnetic Force Between Two Balls |
π‘ Medium |
[C++] |
1568. Minimum Number of Days to Disconnect Island |
π΄ Hard |
[C++] |
1748. Sum of Unique Elements |
π’ Easy |
[C++] |
1752. Check if Array Is Sorted and Rotated |
π’ Easy |
[C++] |
2032. Two Out of Three |
π‘ Medium |
[C++] |
2053. Kth Distinct String In an Array |
π’ Easy |
[C++] |
2134.Minimum Swaps to Group All 1's Together II |
π‘ Medium |
[C++ 1st Approach] [C++ 2nd Approach] |
2206. Divide Array Into Equal Pairs |
π‘ Medium |
[C++] |
2207. Maximum Score From Removing Substrings |
π‘ Medium |
[C++] |
2357. Make Array Zero by Subtracting Equal Amounts |
π‘ Medium |
[C++] |
2678. Number of Senior Citizen |
π’ Easy |
[C++] |
3016. Minimum Number of Pushes to Type Word II |
π‘ Medium |
[C++] |