6
6
- [ Preface] ( #preface )
7
7
- [ Java Syntax Notes] ( #java-syntax-notes )
8
8
- [ Question List] ( #question-list )
9
- - [ Arrays] ( #pattern-arrays )
10
- - [ Backtracking] ( #pattern-backtracking )
11
- - [ Dynamic Programming] ( #pattern--dynamic-programming )
12
- - [ Fast & Slow Pointers] ( #pattern-fast--slow-pointers )
13
- - [ Graph Traversals] ( #pattern-graph-traversals )
14
- - [ In-place Reversal of a Linked List] ( #pattern-in-place-reversal-of-a-linked-list )
15
- - [ K-Way Merge] ( #pattern-k-way-merge )
16
- - [ Matrixes] ( #pattern-matrixes )
17
- - [ Merge Intervals] ( #pattern-merge-intervals )
18
- - [ Modified Binary Search] ( #pattern-modified-binary-search )
19
- - [ Sliding Window] ( #pattern-sliding-window )
20
- - [ Top K Elements] ( #pattern-top-k-elements )
21
- - [ Topological Sort] ( #pattern-topological-sort )
22
- - [ Tree Breadth First Search] ( #pattern-tree-breadth-first-search )
23
- - [ Tree Depth First Search] ( #pattern-tree-depth-first-search )
24
- - [ Two Heaps] ( #pattern-two-heaps )
25
- - [ Two Pointers] ( #pattern-two-pointers )
26
9
- [ Tips to Consider] ( #tips-to-consider )
27
10
- [ Acknowledgements] ( #acknowledgements )
28
11
@@ -64,7 +47,8 @@ Other useful methods that will help include `substring()`, `toCharArray()`, `Mat
64
47
65
48
## Question List
66
49
67
- ### Pattern: Arrays
50
+ <details >
51
+ <summary >Arrays</summary >
68
52
69
53
#### Easy:
70
54
@@ -84,7 +68,10 @@ Other useful methods that will help include `substring()`, `toCharArray()`, `Mat
84
68
1 . First Missing Positive: https://leetcode.com/problems/first-missing-positive/
85
69
1 . Longest Consecutive Sequence: https://leetcode.com/problems/longest-consecutive-sequence/
86
70
87
- ### Pattern: Backtracking
71
+ </details >
72
+
73
+ <details >
74
+ <summary >Backtracking</summary >
88
75
89
76
The backtracking technique can be found under ` 10. Subsets ` [ here] .
90
77
@@ -114,7 +101,10 @@ The backtracking technique can be found under `10. Subsets` [here].
114
101
1 . Sudoku Solver: https://leetcode.com/problems/sudoku-solver/
115
102
1 . N-Queens: https://leetcode.com/problems/n-queens/
116
103
117
- ### Pattern : Dynamic Programming
104
+ </details >
105
+
106
+ <details >
107
+ <summary >Dynamic Programming</summary >
118
108
119
109
Dynamic programming guides can be found on [ topcoder] and the [ Back To Back SWE
120
110
YouTube channel] .
@@ -149,7 +139,10 @@ YouTube channel].
149
139
150
140
1 . Longest Valid Parentheses: https://leetcode.com/problems/longest-valid-parentheses/
151
141
152
- ### Pattern: Fast & Slow Pointers
142
+ </details >
143
+
144
+ <details >
145
+ <summary >Fast & Slow Pointers</summary >
153
146
154
147
The fast & slow pointer approach can be found under ` 3. Fast and Slow pointers ` [ here] .
155
148
@@ -169,7 +162,10 @@ The fast & slow pointer approach can be found under `3. Fast and Slow pointers`
169
162
1 . Sort List: https://leetcode.com/problems/sort-list/
170
163
1 . Reorder List: https://leetcode.com/problems/reorder-list/
171
164
172
- ### Pattern: Graph Traversals
165
+ </details >
166
+
167
+ <details >
168
+ <summary >Graph Traversals</summary >
173
169
174
170
#### Medium:
175
171
@@ -180,7 +176,10 @@ The fast & slow pointer approach can be found under `3. Fast and Slow pointers`
180
176
1 . Graph Valid Tree: https://leetcode.com/problems/graph-valid-tree/
181
177
1 . Number of Connected Components in an Undirected Graph: https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/
182
178
183
- ### Pattern: In-place Reversal of a Linked List
179
+ </details >
180
+
181
+ <details >
182
+ <summary >In-place Reversal of a Linked List</summary >
184
183
185
184
The in-place reveral technique can be found under ` 6. In-place reversal of linked list ` [ here] .
186
185
@@ -199,7 +198,10 @@ The in-place reveral technique can be found under `6. In-place reversal of linke
199
198
200
199
1 . Reverse Nodes in k-Group: https://leetcode.com/problems/reverse-nodes-in-k-group/
201
200
202
- ### Pattern: K-Way Merge
201
+ </details >
202
+
203
+ <details >
204
+ <summary >K-Way Merge</summary >
203
205
204
206
The k-way merge technique can be found under ` 13. K-way Merge ` [ here] .
205
207
@@ -217,7 +219,10 @@ The k-way merge technique can be found under `13. K-way Merge` [here].
217
219
1 . Merge k Sorted Lists: https://leetcode.com/problems/merge-k-sorted-lists/
218
220
1 . Smallest Range Covering Elements from K Lists: https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/
219
221
220
- ### Pattern: Matrixes
222
+ </details >
223
+
224
+ <details >
225
+ <summary >Matrices</summary >
221
226
222
227
#### Medium:
223
228
@@ -226,7 +231,10 @@ The k-way merge technique can be found under `13. K-way Merge` [here].
226
231
1 . Rotate Image: https://leetcode.com/problems/rotate-image/
227
232
1 . Word Search: https://leetcode.com/problems/word-search/
228
233
229
- ### Pattern: Merge Intervals
234
+ </details >
235
+
236
+ <details >
237
+ <summary >Merge Intervals</summary >
230
238
231
239
The merge interval approach can be found under ` 4. Merge Intervals ` [ here] .
232
240
@@ -248,7 +256,10 @@ The merge interval approach can be found under `4. Merge Intervals` [here].
248
256
1 . Insert Interval: https://leetcode.com/problems/insert-interval/
249
257
1 . Employee Free Time: https://leetcode.com/problems/employee-free-time/
250
258
251
- ### Pattern: Modified Binary Search
259
+ </details >
260
+
261
+ <details >
262
+ <summary >Modified Binary Search</summary >
252
263
253
264
The modified binary search algorithm can be found under ` 11. Modified binary search ` [ here] .
254
265
@@ -271,7 +282,10 @@ The modified binary search algorithm can be found under `11. Modified binary sea
271
282
272
283
1 . Count of Range Sum: https://leetcode.com/problems/count-of-range-sum/
273
284
274
- ### Pattern: Sliding Window
285
+ </details >
286
+
287
+ <details >
288
+ <summary >Sliding Window</summary >
275
289
276
290
The sliding window approach can be found under ` 1. Sliding Window ` [ here] .
277
291
@@ -291,7 +305,10 @@ The sliding window approach can be found under `1. Sliding Window` [here].
291
305
1 . Minimum Window Substring: https://leetcode.com/problems/minimum-window-substring/
292
306
1 . Substring with Concatenation of All Words: https://leetcode.com/problems/substring-with-concatenation-of-all-words/
293
307
294
- ### Pattern: Top 'K' Elements
308
+ </details >
309
+
310
+ <details >
311
+ <summary >Top 'K' Elements</summary >
295
312
296
313
The top K element technique can be found under ` 12. Top K elements ` [ here] .
297
314
@@ -311,7 +328,10 @@ The top K element technique can be found under `12. Top K elements` [here].
311
328
1 . Course Schedule III: https://leetcode.com/problems/course-schedule-iii/
312
329
1 . Maximum Frequency Stack: https://leetcode.com/problems/maximum-frequency-stack/
313
330
314
- ### Pattern: Topological Sort
331
+ </details >
332
+
333
+ <details >
334
+ <summary >Topological Sort</summary >
315
335
316
336
The topological sort algorithm can be found under ` 14. Topological sort ` [ here] .
317
337
@@ -326,7 +346,10 @@ The topological sort algorithm can be found under `14. Topological sort` [here].
326
346
1 . Alien Dictionary: https://leetcode.com/problems/alien-dictionary
327
347
1 . Sequence Reconstruction: https://leetcode.com/problems/sequence-reconstruction
328
348
329
- ### Pattern: Tree Breadth First Search
349
+ </details >
350
+
351
+ <details >
352
+ <summary >Tree Breadth First Search</summary >
330
353
331
354
The tree BFS technique can be found under ` 7. Tree BFS ` [ here] .
332
355
@@ -346,7 +369,10 @@ The tree BFS technique can be found under `7. Tree BFS` [here].
346
369
1 . All Nodes Distance K in Binary Tree: https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/
347
370
1 . Boundary of Binary Tree: https://leetcode.com/problems/boundary-of-binary-tree
348
371
349
- ### Pattern: Tree Depth First Search
372
+ </details >
373
+
374
+ <details >
375
+ <summary >Tree Depth First Search</summary >
350
376
351
377
The tree DFS technique can be found under ` 8. Tree DFS ` [ here] .
352
378
@@ -379,7 +405,10 @@ The tree DFS technique can be found under `8. Tree DFS` [here].
379
405
1 . Serialize and Deserialize Binary Tree: https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
380
406
1 . Word Search II: https://leetcode.com/problems/word-search-ii/
381
407
382
- ### Pattern: Two Heaps
408
+ </details >
409
+
410
+ <details >
411
+ <summary >Two Heaps</summary >
383
412
384
413
The two heaps approach can be found under ` 9. Two heaps ` [ here] .
385
414
@@ -389,7 +418,10 @@ The two heaps approach can be found under `9. Two heaps` [here].
389
418
1 . Sliding Window Median: https://leetcode.com/problems/sliding-window-median/
390
419
1 . IPO: https://leetcode.com/problems/ipo/
391
420
392
- ### Pattern: Two Pointers
421
+ </details >
422
+
423
+ <details >
424
+ <summary >Two Pointers</summary >
393
425
394
426
The two pointer approach can be found under ` 2. Two Pointers or Iterators ` [ here] .
395
427
@@ -413,6 +445,8 @@ The two pointer approach can be found under `2. Two Pointers or Iterators` [here
413
445
1 . Trapping Rain Water: https://leetcode.com/problems/trapping-rain-water/
414
446
1 . Container With Most Water: https://leetcode.com/problems/container-with-most-water/
415
447
448
+ </details >
449
+
416
450
## Tips to Consider
417
451
418
452
```
0 commit comments