You are on page 1of 24

1 Two Sum Array

2 Best Time to Buy and Sell Stock Array


3 Contains Duplicate Array
4 Contains Duplicate II Array
5 Product of Array Except Self Array
6 Maximum Subarray Array
7 Maximum Product Subarray Array
8 Find Minimum in Rotated Sorted Array Array
9 Search in Rotated Sorted Array Array
10 Two Sum - II Array
11 3 Sum Array
12 Container With Most Water Array
13 Verifying an Alien Dictionary Array
14 Next Permutation Array
15 Remove Duplicates from Sorted Array Array
16 Find First and Last Position of Element in Sorted Array Array
17 Trapping Rain Water Array
18 Median of Two Sorted Arrays Array
19 Climbing Stairs Dynamic Programming
20 Coin Change Dynamic Programming
21 Longest Increasing Subsequence Dynamic Programming
22 Longest Common Subsequence Dynamic Programming
23 Word Break Problem Dynamic Programming
24 Combination Sum Dynamic Programming
25 House Robber Dynamic Programming
26 House Robber II Dynamic Programming
27 Decode Ways Dynamic Programming
28 Unique Paths Dynamic Programming
29 Pascal's Triangle Dynamic Programming
30 Generate Parentheses Dynamic Programming
31 Jump Game Dynamic Programming
32 Jump Game II Dynamic Programming
33 Regular Expression Matching Dynamic Programming
34 Race Car Dynamic Programming
35 Clone Graph Graph
36 Course Schedule Graph
37 Course Schedule II Graph
38 Pacific Atlantic Water Flow Graph
39 Number of Islands Graph
40 Longest Consecutive Sequence Graph
41 Alien Dictionary (Leetcode Premium) Graph
42 Graph Valid Tree (Leetcode Premium) Graph
43 Number of Provinces Graph
44 Find the Celebrity Graph
45 Number of Connected Components in an Undirected Graph (Leetcode
Graph Premium)
46 Roman to Integer Hashing
47 Copy List with Random Pointer Hashing
48 Word Ladder Hashing
49 First Missing Positive Hashing
50 Insert Interval Interval
51 Merge Intervals Interval
52 Non-overlapping Intervals Interval
53 Remove Interval Interval
54 Meeting Rooms (Leetcode Premium) Interval
55 Meeting Rooms II (Leetcode Premium) Interval
56 Add Two Numbers Linked List
57 Reverse a Linked List Linked List
58 Detect Cycle in a Linked List Linked List
59 Merge Two Sorted Lists Linked List
60 Merge K Sorted Lists Linked List
61 Remove Nth Node From End Of List Linked List
62 Reorder List Linked List
63 Middle of the Linked-List Linked List
64 Flatten Binary Tree to Linked List Linked List
65 Reverse Nodes in k-Group Linked List
66 Set Matrix Zeroes Matrix
67 Spiral Matrix Matrix
68 Rotate Image Matrix
69 Longest Increasing Path in a Matrix Matrix
70 Word Search Matrix
71 Valid Sudoku Matrix
72 Game of Life Matrix
73 LRU Cache Design
74 Insert Delete GetRandom O(1) Design
75 Logger Rate Limiter Design
76 Design Tic-Tac-Toe Design
77 Moving Average from Data Stream Design
78 Merge Sorted Array Sorting
79 Largest Number Sorting
80 Sort List Sorting
81 Sort Colors Sorting
82 Majority Element Sorting
83 Longest Substring Without Repeating Characters String
84 Longest Repeating Character Replacement String
85 Fizz Buzz String
86 Longest Common Prefix String
87 Minimum Window Substring String
88 Valid Anagram String
89 Group Anagrams String
90 Valid Parentheses String
91 Valid Palindrome String
92 Longest Palindromic Substring String
93 Letter Combinations of a Phone Number String
94 Palindromic Substrings String
95 Encode and Decode Strings (Leetcode Premium) String
96 Longest Valid Parentheses String
97 Text Justification String
98 Palindrome Linked List Stack
99 Min Stack Stack
100 Largest Rectangle in Histogram Stack
101 Minimum Remove to Make Valid Parentheses Stack
102 Max Stack Stack
103 Maximum Depth of Binary Tree Tree
104 Same Tree Tree
105 Symmetric Tree Tree
106 Invert/Flip Binary Tree Tree
107 Binary Tree Maximum Path Sum Tree
108 Binary Tree Level Order Traversal Tree
109 Serialize and Deserialize Binary Tree Tree
110 Subtree of Another Tree Tree
111 Find Leaves of Binary Tree Tree
112 Construct Binary Tree from Preorder and Inorder Traversal Tree
113 Validate Binary Search Tree Tree
114 Kth Smallest Element in a BST Tree
115 Lowest Common Ancestor of BST Tree
116 Binary Tree Zigzag Level Order Traversal Tree
117 Implement Trie (Prefix Tree) Tree
118 Add and Search Word Tree
119 Word Search II Tree
120 High Five Heap
121 Top K Frequent Elements Heap
122 Kth Largest Element in an Array Heap
123 Sliding Window Maximum Heap
124 Find Median from Data Stream Heap
125 Employee Free Time Heap
126 Sum of Two Integers Binary-Bit Manipulation
127 Number of 1 Bits Binary-Bit Manipulation
128 Counting Bits Binary-Bit Manipulation
129 Missing Number Binary-Bit Manipulation
130 Reverse Bits Binary-Bit Manipulation
131 https://leetcode.com/problems/design-parking-system/ Class/Hash Table
132 https://leetcode.com/problems/range-sum-of-bst/ BST
133 https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/
LL/ Binary to Decimal/ Bitwise
134 https://leetcode.com/problems/merge-two-binary-trees/ BT
135 https://leetcode.com/problems/intersection-of-two-arrays/ Sorting/Binary Search/ 2 pointers/ Hashtab
136 https://leetcode.com/problems/power-of-two/ Binary/ bitwise manipulation
137 https://leetcode.com/problems/power-of-three/ Binary/ bitwise manipulation
138 https://leetcode.com/problems/power-of-four/ Binary/ bitwise manipulation
139 https://leetcode.com/problems/maximum-number-of-words-found-in-sentences/
Array and Strings.
140 https://leetcode.com/problems/palindrome-number/ Integer
141 https://leetcode.com/problems/single-number/ Hashmap/Sets
142 https://leetcode.com/problems/unique-number-of-occurrences/
Hashmap/Sets/Sorting
143 https://leetcode.com/problems/flipping-an-image/ 2DMatrix/Reverse
144 https://leetcode.com/problems/rings-and-rods/ Sets/Dictionary
145 https://leetcode.com/problems/sorting-the-sentence/ Dictionary/String
146 https://leetcode.com/problems/fibonacci-number/ Recursion/Maths
147 https://leetcode.com/problems/find-the-difference/ Strings/Hashmap/Sets
148 https://leetcode.com/problems/n-ary-tree-preorder-traversal/N-ary Trees
149 https://leetcode.com/problems/moving-average-from-data-stream/
OOPs/Design/Array
150 https://leetcode.com/problems/search-a-2d-matrix/ Matrix/Binarysearch/sorting
151 https://leetcode.com/problems/sort-array-by-parity/ Parity Checker
152 https://leetcode.com/problems/logger-rate-limiter/ Design/Hashmap
153 https://leetcode.com/problems/peak-index-in-a-mountain-array/Binary Search/ Sorted Arrays
154 https://leetcode.com/problems/find-target-indices-after-sorting-array/
Binary Search/ Sorted Arrays
155 https://leetcode.com/problems/middle-of-the-linked-list/ LL/2 pointers
156 https://leetcode.com/problems/squares-of-a-sorted-array/
157 https://leetcode.com/problems/majority-element/ Sorting, hashmap
158 https://www.interviewbit.com/problems/path-in-directed-graph/Graphs/ BFS-DFS Implementation
159 https://www.interviewbit.com/problems/water-flow/ Graphs/ BFS-DFS Implementation
160 https://leetcode.com/problems/maximum-depth-of-binary-tree/ Trees/Recursion
161 https://leetcode.com/problems/minimum-depth-of-binary-tree/ Trees/Recursion
162 https://leetcode.com/problems/diameter-of-binary-tree/ Trees/Recursion
163 https://practice.geeksforgeeks.org/problems/height-of-binary-tree/1#
Trees/Recursion
164 https://leetcode.com/problems/minimum-absolute-difference/ Arrays/Sorting
165 https://www.interviewbit.com/problems/connected-components/ Graphs/ BFS-DFS Implementation
166 https://www.interviewbit.com/problems/region-in-binarymatrix/Graphs/ BFS-DFS Implementation/Matrix
167 https://www.interviewbit.com/problems/valid-path/ Graphs/ BFS-DFS Implementation
168 https://www.interviewbit.com/problems/path-with-good-nodes/ Graphs/ BFS-DFS Implementation
169 https://www.interviewbit.com/problems/level-order/ BFS/Graphs/Trees
170 https://leetcode.com/problems/binary-tree-paths/ Trees/Recursion
171 https://leetcode.com/problems/same-tree/submissions/ Trees/Recursion
172 https://leetcode.com/problems/symmetric-tree/ Trees/Recursion
173 https://leetcode.com/problems/balanced-binary-tree/ Trees/Recursion
174 https://leetcode.com/problems/subtree-of-another-tree/ Trees/Recursion
175 https://practice.geeksforgeeks.org/problems/0-1-knapsack-problem0945/1
DP/0-1 Knapsack
176 https://leetcode.com/problems/partition-equal-subset-sum/ DP/0-1 Knapsack/Subset sum + equal par
177 https://practice.geeksforgeeks.org/problems/knapsack-with-duplicate-items4201/1#
DP/Unbounded Knapsack
178 https://practice.geeksforgeeks.org/problems/perfect-sum-problem5633/1
DP/0-1 Knapsack/count of SUBSET SUM
179 https://practice.geeksforgeeks.org/problems/rod-cutting0840/1DP/Unbounded Knapsack
180 https://leetcode.com/problems/climbing-stairs/ DP
181 https://practice.geeksforgeeks.org/problems/coin-change2448/1#
DP/Unbounded Knapsack
182 https://leetcode.com/problems/coin-change/ DP/Unbounded Knapsack
183 https://practice.geeksforgeeks.org/problems/minimum-sum-partition3317/1#
DP/0-1 Knapsack/ Minimum subset sum d
184 https://leetcode.com/problems/longest-common-subsequence/ DP/Longest common subsequence
185 https://practice.geeksforgeeks.org/problems/longest-common-substring1452/1
DP/Longest common subsequence
186 https://www.interviewbit.com/problems/profit-maximisation/ Heaps/Priority Queue
187 https://www.interviewbit.com/problems/k-largest-elements/ Heaps/Priority Queue
188 https://www.interviewbit.com/problems/merge-k-sorted-arrays/ Heaps/Priority Queue
189 https://www.interviewbit.com/problems/magician-and-chocolates/
Heaps/Priority Queue
190 https://leetcode.com/problems/top-k-frequent-words/ Heaps/Priority Queue
191 https://leetcode.com/problems/last-stone-weight/ Heaps/Priority Queue
192 https://leetcode.com/problems/sort-characters-by-frequency/ Heaps/Priority Queue
193 https://leetcode.com/problems/binary-search/ Binary Search
194 https://leetcode.com/problems/sqrtx/ Binary Search/Maths
195 https://leetcode.com/problems/first-bad-version/ Binary Search
196 https://leetcode.com/problems/search-insert-position/ Binary Search
197 https://leetcode.com/problems/valid-perfect-square/ Binary Search
198 https://leetcode.com/problems/kth-missing-positive-number/submissions/
Hashmap/Binary Search
199 https://leetcode.com/problems/binary-tree-preorder-traversal/Stack, BT, Recursion
200 https://leetcode.com/problems/implement-queue-using-stacks/submissions/
Stack/Queues
201 https://leetcode.com/problems/min-stack/ Stack
202 https://leetcode.com/problems/valid-parentheses/ Stack
203 https://leetcode.com/problems/backspace-string-compare/ Stack
204 https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/
Stack
205 https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/
2 pointers, Binary Search/ Set/ XOR
206 https://leetcode.com/problems/find-the-duplicate-number/submissions/
Binary Search/ Hashmap
207 https://leetcode.com/problems/single-element-in-a-sorted-array/
Binary Search/ Hashmap
208 https://leetcode.com/problems/length-of-last-word/ String
209 https://leetcode.com/problems/valid-palindrome/ String
https://www.youtube.com/watch?v=NP9nLwKzXGA
https://www.youtube.com/watch?v=CCQBvgPages
https://www.youtube.com/watch?v=XECOM0RnIig
https://www.youtube.com/watch?v=Te_MCY4uG-M
https://www.youtube.com/watch?v=UxmLwxH-lhM
https://www.youtube.com/watch?v=nr2djEYM7_A
https://www.youtube.com/watch?v=OuRQ_TCCjsU
https://www.youtube.com/watch?v=Dr69TSfv9JI
https://www.youtube.com/watch?v=sE_4DzVc71w
https://www.youtube.com/watch?v=c9ywRRJcP1Y
https://www.youtube.com/watch?v=WtloSzFYvho
https://www.youtube.com/watch?v=wi8fqhNoV-Y
https://www.youtube.com/watch?v=8NoyVvm1v88
https://www.youtube.com/watch?v=oc3OOtGmH6U
https://www.youtube.com/watch?v=0F49FLuzScU
https://www.youtube.com/watch?v=aPD6g96fRO4
https://www.youtube.com/watch?v=AFl_VxaO_F0
https://www.youtube.com/watch?v=LRM4qiHLYCE
https://www.youtube.com/watch?v=N9syEXfu1Rw
https://www.youtube.com/watch?v=UOmlkfWMU6M
https://www.youtube.com/watch?v=cixz99yxgWA
https://www.youtube.com/watch?v=lPnPdSIliII
https://www.youtube.com/watch?v=XD9tXO9HW40
https://www.youtube.com/watch?v=dJBbuDK4ZRk
https://www.youtube.com/watch?v=jFmfYi_dvwQ
https://www.youtube.com/watch?v=c_rwra1aITY
https://www.youtube.com/watch?v=ayGRvdnjFKg
https://www.youtube.com/watch?v=klWLMgdMWCY
https://www.youtube.com/watch?v=f0EEHwaY3HY
https://www.youtube.com/watch?v=VzMyeCMLdPI
https://www.youtube.com/watch?v=PVNLmjJaHW0
https://www.youtube.com/watch?v=d_1GRnMg_zs
https://www.youtube.com/watch?v=VFQddcCP46c
https://www.youtube.com/watch?v=TAXt_TkSNfw
https://www.youtube.com/watch?v=1aN0WWM0-Eo
https://www.youtube.com/watch?v=ge9WKEsVue0
https://www.youtube.com/watch?v=_RWV4hZdmdk
https://www.youtube.com/watch?v=fTohawuMcvY
https://www.youtube.com/watch?v=H-2Nh2RXX6g
https://www.youtube.com/watch?v=sJBf-JdWGhM
https://www.youtube.com/watch?v=1QbsN5JyPto
https://www.youtube.com/watch?v=WU3-vo0MJW0
https://www.youtube.com/watch?v=ff38kbREIX8
https://www.youtube.com/watch?v=lqdgGNGPS68
https://www.youtube.com/watch?v=NDInpfnTMos
https://www.youtube.com/watch?v=qmkr61ySQwQ
https://www.youtube.com/watch?v=vy7ZJ4TdyS8
https://www.youtube.com/watch?v=isLTjdCw52s
https://www.youtube.com/watch?v=N8DefKVUIKw
https://www.youtube.com/watch?v=16YiKk6ga7Y
https://www.youtube.com/watch?v=n3F2v9f8OfY
https://www.youtube.com/watch?v=y8nBFmPsAF8
https://www.youtube.com/watch?v=YrB_zKEHgmQ
https://www.youtube.com/watch?v=5nqLIwo0oC0
https://www.youtube.com/watch?v=sQkgNfoPrDw
https://www.youtube.com/watch?v=MYtp__JpTns
https://www.youtube.com/watch?v=FHhItaCZ2pE
https://www.youtube.com/watch?v=k-gTqlOBT1g
https://www.youtube.com/watch?v=Bwymxn-n6XA
https://www.youtube.com/watch?v=SlKgDtpJnxg
https://www.youtube.com/watch?v=hZtAW3cp8vQ
https://www.youtube.com/watch?v=lBdS4AV1EGw
https://www.youtube.com/watch?v=s7cHxJBuhjg
https://www.youtube.com/watch?v=3IrFrQ2JSfg
https://www.youtube.com/watch?v=P9_K8M4nnf0
https://www.youtube.com/watch?v=JwQvyZcwcP4
https://www.youtube.com/watch?v=xUpnTpzMqfI
https://www.youtube.com/watch?v=dF1E3G9wBCw

https://www.youtube.com/watch?v=5VRCAx2DVas
https://www.youtube.com/watch?v=q2fl7lUkc8o
https://www.youtube.com/watch?v=1FQNMDPZXRc

https://www.youtube.com/watch?v=gYNSX9yVuhQ

https://www.youtube.com/watch?v=WTuA4qNZky4

https://www.youtube.com/watch?v=UoTI6zBIBMo
https://www.youtube.com/watch?v=RMQ-gRQAY0o
https://www.youtube.com/watch?v=FYyWsqFjkZk

https://www.youtube.com/watch?v=tMx5JZSBWIE
https://www.youtube.com/watch?v=qyQni3rz-ko
https://www.youtube.com/watch?v=dEMcIpBOHpg
https://www.youtube.com/watch?v=D4l9TK0tWcI
https://www.youtube.com/watch?v=MFPmKyThyHk
https://www.youtube.com/watch?v=92KOT17h8zw

https://www.youtube.com/watch?v=WfkVe8egZbU
https://www.youtube.com/watch?v=P5LQbpI4p_I
https://www.youtube.com/watch?v=yi7ym5R5aYI
https://www.youtube.com/watch?v=yi7ym5R5aYI

https://www.youtube.com/watch?v=yb2Y9h2YWio
https://www.youtube.com/watch?v=6wv9yMSenvQ
https://www.youtube.com/watch?v=tBJ1a5ljFCQ
https://www.youtube.com/watch?v=vqbpTOU-LS4
https://www.youtube.com/watch?v=YOW_-ptARNE

https://www.youtube.com/watch?v=YYl2Tp-Wqcw
https://www.youtube.com/watch?v=QaCMLopSwWI
https://www.youtube.com/watch?v=tAUB05a6ys4
https://www.youtube.com/watch?v=1HUmPsyFb9U
https://www.youtube.com/watch?v=Oy3g4SEKNw0
https://www.youtube.com/watch?v=nLTqtBLhPbQ
https://www.youtube.com/watch?v=Z7Kr2b4d9fE
https://www.youtube.com/watch?v=8K2Sh9ingJA
https://www.youtube.com/watch?v=z4c5QzarJxI
https://www.youtube.com/watch?v=QubWUx59QCk

https://www.youtube.com/watch?v=oQqe3N2aSd4
https://www.youtube.com/watch?v=xx9vN3n0_SA
https://www.youtube.com/watch?v=f9vCuICgRpU
https://www.youtube.com/watch?v=-pLW7935dlc
https://www.youtube.com/watch?v=-7bpRBMPXh8

ch/ 2 pointers/ Hashtable/Dictionary(in Python)


mplementation
mplementation

mplementation
mplementation/Matrix
mplementation
mplementation

ubset sum + equal partition sum

ount of SUBSET SUM

Minimum subset sum difference


n subsequence
n subsequence
earch/ Set/ XOR
Arrays
EASY
https://leetcode.com/problems/two-sum/
https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
https://leetcode.com/problems/plus-one/
https://leetcode.com/problems/move-zeroes/
https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
https://leetcode.com/problems/running-sum-of-1d-array/
https://leetcode.com/problems/find-pivot-index/
https://leetcode.com/problems/majority-element/
https://leetcode.com/problems/fibonacci-number/
https://leetcode.com/problems/squares-of-a-sorted-array/
https://leetcode.com/problems/pascals-triangle/
https://leetcode.com/problems/remove-duplicates-from-sorted-array/

MEDIUM
https://leetcode.com/problems/merge-intervals/
https://leetcode.com/problems/3sum/
https://leetcode.com/problems/product-of-array-except-self/
https://leetcode.com/problems/insert-delete-getrandom-o1/
https://leetcode.com/problems/subarray-sum-equals-k/
https://leetcode.com/problems/next-permutation/
https://leetcode.com/problems/spiral-matrix/
https://leetcode.com/problems/container-with-most-water/
https://leetcode.com/problems/rotate-image/
https://leetcode.com/problems/word-search/
https://leetcode.com/problems/3sum-closest/
https://leetcode.com/problems/game-of-life/
https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/
https://leetcode.com/problems/4sum/
https://leetcode.com/problems/find-the-duplicate-number/
https://leetcode.com/problems/combination-sum/
https://leetcode.com/problems/jump-game-ii/
https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/
https://leetcode.com/problems/maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts/
https://leetcode.com/problems/max-area-of-island/
https://leetcode.com/problems/find-all-duplicates-in-an-array/
https://leetcode.com/problems/k-diff-pairs-in-an-array/
https://leetcode.com/problems/subsets/
https://leetcode.com/problems/invalid-transactions/
https://leetcode.com/problems/jump-game/
https://leetcode.com/problems/subarray-sums-divisible-by-k/
HARD
https://leetcode.com/problems/first-missing-positive/
https://leetcode.com/problems/largest-rectangle-in-histogram/
https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/
https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/
https://leetcode.com/problems/max-value-of-equation/

RECURSION
1- What is recursion
2- How Recursion Works
3- What is a recursion tree
4- https://leetcode.com/problems/powx-n/
5- https://leetcode.com/problems/valid-palindrome/
6- General Steps to recursion problems
7- https://leetcode.com/problems/subsets/
8- https://leetcode.com/problems/permutations/
9- https://leetcode.com/problems/permutations-ii/
10- https://leetcode.com/problems/subsets-ii/
11- https://leetcode.com/problems/combinations/
12- https://leetcode.com/problems/combination-sum/
13- https://leetcode.com/problems/combination-sum-ii/
14- https://leetcode.com/problems/combination-sum-iii/
15- https://leetcode.com/problems/letter-combinations-of-a-phone-number/
16- https://leetcode.com/problems/partition-to-k-equal-sum-subsets/
17- https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/
18- https://leetcode.com/problems/flood-fill/
19- https://leetcode.com/problems/word-search/
20- Rat in a Maze
21- https://leetcode.com/problems/n-queens/

DYNAMIC PROGRAMING
EASY
https://leetcode.com/problems/maximum-subarray/
https://leetcode.com/problems/climbing-stairs
https://leetcode.com/problems/divisor-game/
https://leetcode.com/problems/counting-bits/

MEDIUM
https://leetcode.com/problems/decode-ways/
https://leetcode.com/problems/word-break/
https://leetcode.com/problems/delete-and-earn/
https://leetcode.com/problems/maximal-square/
https://leetcode.com/problems/coin-change/
https://leetcode.com/problems/maximum-product-subarray/
https://leetcode.com/problems/maximum-length-of-repeated-subarray/
https://leetcode.com/problems/palindromic-substrings/
https://leetcode.com/problems/house-robber/
https://leetcode.com/problems/continuous-subarray-sum/
https://leetcode.com/problems/knight-dialer/
https://leetcode.com/problems/longest-increasing-subsequence/
https://leetcode.com/problems/unique-paths/
https://leetcode.com/problems/count-square-submatrices-with-all-ones/
https://leetcode.com/problems/range-sum-query-2d-immutable/
https://leetcode.com/problems/longest-arithmetic-subsequence/

HARD
https://leetcode.com/problems/trapping-rain-water/
https://leetcode.com/problems/word-break-ii/
https://leetcode.com/problems/regular-expression-matching/
https://leetcode.com/problems/maximal-rectangle/
https://leetcode.com/problems/longest-valid-parentheses/
https://leetcode.com/problems/edit-distance/
https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule/
https://leetcode.com/problems/frog-jump/
https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/
https://leetcode.com/problems/burst-balloons/
https://leetcode.com/problems/minimum-cost-to-merge-stones/
https://leetcode.com/problems/minimum-insertion-steps-to-make-a-string-palindrome/
https://leetcode.com/problems/super-egg-drop/
https://leetcode.com/problems/count-different-palindromic-subsequences/
https://leetcode.com/problems/minimum-cost-to-cut-a-stick/

STRINGS
EASY
https://leetcode.com/problems/add-strings/
https://leetcode.com/problems/longest-common-prefix/
https://leetcode.com/problems/valid-palindrome-ii/
https://leetcode.com/problems/roman-to-integer/
https://leetcode.com/problems/implement-strstr/

MEDIUM
https://leetcode.com/problems/longest-substring-without-repeating-characters/
https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/
https://leetcode.com/problems/longest-palindromic-substring/

https://leetcode.com/problems/group-anagrams/
https://leetcode.com/problems/generate-parentheses/
https://leetcode.com/problems/basic-calculator-ii/
https://leetcode.com/problems/integer-to-roman/
https://leetcode.com/problems/reverse-words-in-a-string/
https://leetcode.com/problems/simplify-path/
https://leetcode.com/problems/zigzag-conversion/

HARD
https://leetcode.com/problems/text-justification/
https://leetcode.com/problems/integer-to-english-words/
https://leetcode.com/problems/minimum-window-substring/
https://leetcode.com/problems/valid-number/
https://leetcode.com/problems/distinct-subsequences/
https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/
https://leetcode.com/problems/substring-with-concatenation-of-all-words/

MATHS
EASY
https://leetcode.com/problems/reverse-integer/
https://leetcode.com/problems/add-binary/
https://leetcode.com/problems/palindrome-number/
https://leetcode.com/problems/minimum-moves-to-equal-array-elements/
https://leetcode.com/problems/happy-number/
https://leetcode.com/problems/excel-sheet-column-title/
https://leetcode.com/problems/missing-number/
https://leetcode.com/problems/maximum-product-of-three-numbers/
https://leetcode.com/problems/power-of-two/

MEDIUM
https://leetcode.com/problems/encode-and-decode-tinyurl/
https://leetcode.com/problems/string-to-integer-atoi/
https://leetcode.com/problems/multiply-strings/
https://leetcode.com/problems/angle-between-hands-of-a-clock/
https://leetcode.com/problems/integer-break/
https://leetcode.com/problems/valid-square/
https://leetcode.com/problems/the-kth-factor-of-n/

HARD
https://leetcode.com/problems/basic-calculator/
https://leetcode.com/problems/max-points-on-a-line/
https://leetcode.com/problems/permutation-sequence/
https://leetcode.com/problems/number-of-digit-one/

GREEDY
EASY
THAT WOULD BE TOO EASY FOR YOU , LETS DO MEDIUM

MEDIUM
https://leetcode.com/problems/task-scheduler/
https://leetcode.com/problems/gas-station/
https://leetcode.com/problems/minimum-deletion-cost-to-avoid-repeating-letters/
https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended/
https://leetcode.com/problems/minimum-deletions-to-make-character-frequencies-unique/
https://leetcode.com/problems/remove-k-digits/
https://leetcode.com/problems/restore-the-array-from-adjacent-pairs/
https://leetcode.com/problems/non-overlapping-intervals/

HARD
https://leetcode.com/problems/candy/
https://leetcode.com/problems/minimum-number-of-taps-to-open-to-water-a-garden/
https://leetcode.com/problems/create-maximum-number/

DFS
MEDIUM
https://leetcode.com/problems/letter-combinations-of-a-phone-number/
https://leetcode.com/problems/course-schedule-ii/
https://leetcode.com/problems/decode-string/
https://leetcode.com/problems/number-of-provinces/
https://leetcode.com/problems/clone-graph/
https://leetcode.com/problems/shortest-bridge/
https://leetcode.com/problems/all-paths-from-source-to-target/
https://leetcode.com/problems/surrounded-regions//
https://leetcode.com/problems/house-robber-iii/

HARD
https://leetcode.com/problems/critical-connections-in-a-network/
https://leetcode.com/problems/remove-invalid-parentheses/
https://leetcode.com/problems/longest-increasing-path-in-a-matrix/
https://leetcode.com/problems/concatenated-words/
https://leetcode.com/problems/making-a-large-island/
https://leetcode.com/problems/contain-virus/
https://leetcode.com/problems/24-game/
https://leetcode.com/problems/remove-boxes/

TREE
EASY
https://leetcode.com/problems/diameter-of-binary-tree/
https://leetcode.com/problems/invert-binary-tree/
https://leetcode.com/problems/subtree-of-another-tree/
https://leetcode.com/problems/range-sum-of-bst/
https://leetcode.com/problems/symmetric-tree/
https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/
https://leetcode.com/problems/merge-two-binary-trees/
https://leetcode.com/problems/maximum-depth-of-binary-tree/
https://leetcode.com/problems/binary-tree-paths/
https://leetcode.com/problems/same-tree/
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
https://leetcode.com/problems/path-sum/
https://leetcode.com/problems/minimum-absolute-difference-in-bst/
https://leetcode.com/problems/sum-of-left-leaves/
https://leetcode.com/problems/balanced-binary-tree/
https://leetcode.com/problems/binary-tree-inorder-traversal/ (USING STACK TOO)

MEDIUM
https://leetcode.com/problems/count-good-nodes-in-binary-tree/
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
https://leetcode.com/problems/binary-tree-right-side-view/
https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/
https://leetcode.com/problems/validate-binary-search-tree/
https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
https://leetcode.com/problems/binary-search-tree-iterator/
https://leetcode.com/problems/binary-tree-level-order-traversal/
https://leetcode.com/problems/path-sum-iii/
https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/
https://leetcode.com/problems/unique-binary-search-trees/
https://leetcode.com/problems/recover-binary-search-tree/
https://leetcode.com/problems/populating-next-right-pointers-in-each-node/
https://leetcode.com/problems/flatten-binary-tree-to-linked-list/
https://leetcode.com/problems/maximum-width-of-binary-tree/
https://leetcode.com/problems/unique-binary-search-trees-ii/
https://leetcode.com/problems/kth-smallest-element-in-a-bst/
https://leetcode.com/problems/redundant-connection/

HARD
https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
https://leetcode.com/problems/binary-tree-maximum-path-sum/
https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/
https://leetcode.com/problems/binary-tree-cameras/
https://leetcode.com/problems/sum-of-distances-in-tree/
https://leetcode.com/problems/number-of-ways-to-reconstruct-a-tree/
https://leetcode.com/problems/redundant-connection-ii/

HASH TABLE
EASY
https://leetcode.com/problems/verifying-an-alien-dictionary/
https://leetcode.com/problems/design-hashmap/

MEDIUM
https://leetcode.com/problems/top-k-frequent-elements/
https://leetcode.com/problems/design-twitter/
BINARY SEARCH
EASY
https://leetcode.com/problems/sqrtx/
https://leetcode.com/problems/binary-search/
https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/
https://leetcode.com/problems/peak-index-in-a-mountain-array/

MEDIUM
https://leetcode.com/problems/time-based-key-value-store/
https://leetcode.com/problems/search-in-rotated-sorted-array/
https://leetcode.com/problems/powx-n/
https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
https://leetcode.com/problems/find-peak-element/
https://leetcode.com/problems/search-a-2d-matrix/
https://leetcode.com/problems/divide-two-integers/
https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/
https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag/

HARD
https://leetcode.com/problems/median-of-two-sorted-arrays/
https://leetcode.com/problems/count-of-smaller-numbers-after-self/
https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/
https://leetcode.com/problems/split-array-largest-sum/
https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/

BFS
MEDIUM
https://leetcode.com/problems/number-of-islands/
https://leetcode.com/problems/rotting-oranges/
https://leetcode.com/problems/snakes-and-ladders/
https://leetcode.com/problems/is-graph-bipartite/
https://leetcode.com/problems/minimum-jumps-to-reach-home/

HARD
https://leetcode.com/problems/word-ladder/
https://leetcode.com/problems/word-ladder-ii/
https://leetcode.com/problems/cut-off-trees-for-golf-event/
https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/

TWO POINTER
MEDIUM / HARD
https://leetcode.com/problems/partition-labels/
https://leetcode.com/problems/sort-colors/
https://leetcode.com/problems/longest-repeating-character-replacement/
https://leetcode.com/problems/maximum-number-of-visible-points/
https://leetcode.com/problems/subarrays-with-k-different-integers/

STACK
EASY
https://leetcode.com/problems/min-stack/
https://leetcode.com/problems/next-greater-element-i/
https://leetcode.com/problems/backspace-string-compare/
https://leetcode.com/problems/implement-queue-using-stacks/
PRE , POST , INORDER TRAVERSALS OF BINARY TREE
https://leetcode.com/problems/implement-stack-using-queues/

MEDIUM
https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/
https://leetcode.com/problems/daily-temperatures/
https://leetcode.com/problems/flatten-nested-list-iterator/
https://leetcode.com/problems/online-stock-span/
https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/
https://leetcode.com/problems/sum-of-subarray-minimums/
https://leetcode.com/problems/evaluate-reverse-polish-notation/

DESIGN
MEDIUM / HARD
https://leetcode.com/problems/lru-cache/
https://leetcode.com/problems/find-median-from-data-stream/
https://leetcode.com/problems/design-underground-system/
https://leetcode.com/problems/lfu-cache/
https://leetcode.com/problems/tweet-counts-per-frequency/
https://leetcode.com/problems/all-oone-data-structure/
https://leetcode.com/problems/design-browser-history/

GRAPH
EASY
https://leetcode.com/problems/employee-importance/
https://leetcode.com/problems/find-the-town-judge/

MEDIUM
https://leetcode.com/problems/evaluate-division/
https://leetcode.com/problems/accounts-merge/
https://leetcode.com/problems/network-delay-time/
https://leetcode.com/problems/find-eventual-safe-states/
https://leetcode.com/problems/keys-and-rooms/
https://leetcode.com/problems/possible-bipartition/
https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/
https://leetcode.com/problems/regions-cut-by-slashes/
https://leetcode.com/problems/satisfiability-of-equality-equations/
https://leetcode.com/problems/as-far-from-land-as-possible/
https://leetcode.com/problems/number-of-closed-islands/
https://leetcode.com/problems/number-of-operations-to-make-network-connected/
https://leetcode.com/problems/find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance/
https://leetcode.com/problems/time-needed-to-inform-all-employees/

BIT MANIPULATION
https://leetcode.com/problems/sum-of-two-integers/discuss/84278/A-summary%3A-how-to-use-bit-manipulation-to-s

LINKED LIST

1- Uses of Linked List ( Real Life )


2- Representation of Linked List
3- https://leetcode.com/problems/delete-node-in-a-linked-list/
4- Arrays vs Linked List
5- https://leetcode.com/problems/middle-of-the-linked-list/
6- https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/
7- Doubly Linked List and STLs
8- https://leetcode.com/problems/design-hashset/
9- https://leetcode.com/problems/design-hashmap/
10- https://leetcode.com/problems/reverse-linked-list/
11- Reverse Nodes in k-Group [ https://leetcode.com/problems/reverse-nodes-in-k-group/ ]
12- Reverse Nodes in k-Group (NO EXTRA SPACE)
13- https://leetcode.com/problems/merge-two-sorted-lists/
14- https://leetcode.com/problems/merge-k-sorted-lists/
15- https://leetcode.com/problems/remove-duplicates-from-sorted-list/
16- https://leetcode.com/problems/linked-list-cycle/
17- https://leetcode.com/problems/linked-list-cycle-ii/
18- https://leetcode.com/problems/intersection-of-two-linked-lists/
19- https://leetcode.com/problems/palindrome-linked-list/
20- https://leetcode.com/problems/remove-linked-list-elements/
21- https://leetcode.com/problems/design-browser-history/
22- https://leetcode.com/problems/lru-cache/
23- Copy List with Random Pointer ( with extra space ) [ https://leetcode.com/problems/copy-list-with-random-pointe
24- Copy List with Random Pointer ( NO extra space )

HEAP
MEDIUM
https://leetcode.com/problems/k-closest-points-to-origin/
https://leetcode.com/problems/kth-largest-element-in-an-array/
https://leetcode.com/problems/reorganize-string/
https://leetcode.com/problems/furthest-building-you-can-reach/
https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/
https://leetcode.com/problems/cheapest-flights-within-k-stops/
https://leetcode.com/problems/find-the-most-competitive-subsequence/
https://leetcode.com/problems/ugly-number-ii/

HARD
https://leetcode.com/problems/merge-k-sorted-lists/
https://leetcode.com/problems/sliding-window-maximum/
https://leetcode.com/problems/the-skyline-problem/
https://leetcode.com/problems/trapping-rain-water-ii/
https://leetcode.com/problems/minimum-number-of-refueling-stops/
https://leetcode.com/problems/swim-in-rising-water/
https://leetcode.com/problems/shortest-path-to-get-all-keys/
https://leetcode.com/problems/minimum-cost-to-hire-k-workers/
https://leetcode.com/problems/k-th-smallest-prime-fraction/

SLIDING WINDOW
MEDIUM/HARD
https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/
https://leetcode.com/problems/max-consecutive-ones-iii/
https://leetcode.com/problems/grumpy-bookstore-owner/
https://leetcode.com/problems/sliding-window-median/

TRIE
https://leetcode.com/explore/learn/card/trie/
SEGMENT TREE
https://leetcode.com/articles/a-recursive-approach-to-segment-trees-range-sum-queries-lazy-propagation/
rtical-cuts/
e-characters/
hreshold-distance/

-to-use-bit-manipulation-to-solve-problems-easily-and-efficiently

copy-list-with-random-pointer/ ]
lazy-propagation/

You might also like