Skip to content

Commit 138a778

Browse files
Sean PrashadSean Prashad
Sean Prashad
authored and
Sean Prashad
committed
Reformat list to use collapsible markdown
1 parent 5c51f05 commit 138a778

File tree

1 file changed

+68
-34
lines changed

1 file changed

+68
-34
lines changed

README.md

+68-34
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
- [Preface](#preface)
77
- [Java Syntax Notes](#java-syntax-notes)
88
- [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)
269
- [Tips to Consider](#tips-to-consider)
2710
- [Acknowledgements](#acknowledgements)
2811

@@ -64,7 +47,8 @@ Other useful methods that will help include `substring()`, `toCharArray()`, `Mat
6447

6548
## Question List
6649

67-
### Pattern: Arrays
50+
<details>
51+
<summary>Arrays</summary>
6852

6953
#### Easy:
7054

@@ -84,7 +68,10 @@ Other useful methods that will help include `substring()`, `toCharArray()`, `Mat
8468
1. First Missing Positive: https://leetcode.com/problems/first-missing-positive/
8569
1. Longest Consecutive Sequence: https://leetcode.com/problems/longest-consecutive-sequence/
8670

87-
### Pattern: Backtracking
71+
</details>
72+
73+
<details>
74+
<summary>Backtracking</summary>
8875

8976
The backtracking technique can be found under `10. Subsets` [here].
9077

@@ -114,7 +101,10 @@ The backtracking technique can be found under `10. Subsets` [here].
114101
1. Sudoku Solver: https://leetcode.com/problems/sudoku-solver/
115102
1. N-Queens: https://leetcode.com/problems/n-queens/
116103

117-
### Pattern : Dynamic Programming
104+
</details>
105+
106+
<details>
107+
<summary>Dynamic Programming</summary>
118108

119109
Dynamic programming guides can be found on [topcoder] and the [Back To Back SWE
120110
YouTube channel].
@@ -149,7 +139,10 @@ YouTube channel].
149139

150140
1. Longest Valid Parentheses: https://leetcode.com/problems/longest-valid-parentheses/
151141

152-
### Pattern: Fast & Slow Pointers
142+
</details>
143+
144+
<details>
145+
<summary>Fast & Slow Pointers</summary>
153146

154147
The fast & slow pointer approach can be found under `3. Fast and Slow pointers` [here].
155148

@@ -169,7 +162,10 @@ The fast & slow pointer approach can be found under `3. Fast and Slow pointers`
169162
1. Sort List: https://leetcode.com/problems/sort-list/
170163
1. Reorder List: https://leetcode.com/problems/reorder-list/
171164

172-
### Pattern: Graph Traversals
165+
</details>
166+
167+
<details>
168+
<summary>Graph Traversals</summary>
173169

174170
#### Medium:
175171

@@ -180,7 +176,10 @@ The fast & slow pointer approach can be found under `3. Fast and Slow pointers`
180176
1. Graph Valid Tree: https://leetcode.com/problems/graph-valid-tree/
181177
1. Number of Connected Components in an Undirected Graph: https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/
182178

183-
### Pattern: In-place Reversal of a Linked List
179+
</details>
180+
181+
<details>
182+
<summary>In-place Reversal of a Linked List</summary>
184183

185184
The in-place reveral technique can be found under `6. In-place reversal of linked list` [here].
186185

@@ -199,7 +198,10 @@ The in-place reveral technique can be found under `6. In-place reversal of linke
199198

200199
1. Reverse Nodes in k-Group: https://leetcode.com/problems/reverse-nodes-in-k-group/
201200

202-
### Pattern: K-Way Merge
201+
</details>
202+
203+
<details>
204+
<summary>K-Way Merge</summary>
203205

204206
The k-way merge technique can be found under `13. K-way Merge` [here].
205207

@@ -217,7 +219,10 @@ The k-way merge technique can be found under `13. K-way Merge` [here].
217219
1. Merge k Sorted Lists: https://leetcode.com/problems/merge-k-sorted-lists/
218220
1. Smallest Range Covering Elements from K Lists: https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/
219221

220-
### Pattern: Matrixes
222+
</details>
223+
224+
<details>
225+
<summary>Matrices</summary>
221226

222227
#### Medium:
223228

@@ -226,7 +231,10 @@ The k-way merge technique can be found under `13. K-way Merge` [here].
226231
1. Rotate Image: https://leetcode.com/problems/rotate-image/
227232
1. Word Search: https://leetcode.com/problems/word-search/
228233

229-
### Pattern: Merge Intervals
234+
</details>
235+
236+
<details>
237+
<summary>Merge Intervals</summary>
230238

231239
The merge interval approach can be found under `4. Merge Intervals` [here].
232240

@@ -248,7 +256,10 @@ The merge interval approach can be found under `4. Merge Intervals` [here].
248256
1. Insert Interval: https://leetcode.com/problems/insert-interval/
249257
1. Employee Free Time: https://leetcode.com/problems/employee-free-time/
250258

251-
### Pattern: Modified Binary Search
259+
</details>
260+
261+
<details>
262+
<summary>Modified Binary Search</summary>
252263

253264
The modified binary search algorithm can be found under `11. Modified binary search` [here].
254265

@@ -271,7 +282,10 @@ The modified binary search algorithm can be found under `11. Modified binary sea
271282

272283
1. Count of Range Sum: https://leetcode.com/problems/count-of-range-sum/
273284

274-
### Pattern: Sliding Window
285+
</details>
286+
287+
<details>
288+
<summary>Sliding Window</summary>
275289

276290
The sliding window approach can be found under `1. Sliding Window` [here].
277291

@@ -291,7 +305,10 @@ The sliding window approach can be found under `1. Sliding Window` [here].
291305
1. Minimum Window Substring: https://leetcode.com/problems/minimum-window-substring/
292306
1. Substring with Concatenation of All Words: https://leetcode.com/problems/substring-with-concatenation-of-all-words/
293307

294-
### Pattern: Top 'K' Elements
308+
</details>
309+
310+
<details>
311+
<summary>Top 'K' Elements</summary>
295312

296313
The top K element technique can be found under `12. Top K elements` [here].
297314

@@ -311,7 +328,10 @@ The top K element technique can be found under `12. Top K elements` [here].
311328
1. Course Schedule III: https://leetcode.com/problems/course-schedule-iii/
312329
1. Maximum Frequency Stack: https://leetcode.com/problems/maximum-frequency-stack/
313330

314-
### Pattern: Topological Sort
331+
</details>
332+
333+
<details>
334+
<summary>Topological Sort</summary>
315335

316336
The topological sort algorithm can be found under `14. Topological sort` [here].
317337

@@ -326,7 +346,10 @@ The topological sort algorithm can be found under `14. Topological sort` [here].
326346
1. Alien Dictionary: https://leetcode.com/problems/alien-dictionary
327347
1. Sequence Reconstruction: https://leetcode.com/problems/sequence-reconstruction
328348

329-
### Pattern: Tree Breadth First Search
349+
</details>
350+
351+
<details>
352+
<summary>Tree Breadth First Search</summary>
330353

331354
The tree BFS technique can be found under `7. Tree BFS` [here].
332355

@@ -346,7 +369,10 @@ The tree BFS technique can be found under `7. Tree BFS` [here].
346369
1. All Nodes Distance K in Binary Tree: https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/
347370
1. Boundary of Binary Tree: https://leetcode.com/problems/boundary-of-binary-tree
348371

349-
### Pattern: Tree Depth First Search
372+
</details>
373+
374+
<details>
375+
<summary>Tree Depth First Search</summary>
350376

351377
The tree DFS technique can be found under `8. Tree DFS` [here].
352378

@@ -379,7 +405,10 @@ The tree DFS technique can be found under `8. Tree DFS` [here].
379405
1. Serialize and Deserialize Binary Tree: https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
380406
1. Word Search II: https://leetcode.com/problems/word-search-ii/
381407

382-
### Pattern: Two Heaps
408+
</details>
409+
410+
<details>
411+
<summary>Two Heaps</summary>
383412

384413
The two heaps approach can be found under `9. Two heaps` [here].
385414

@@ -389,7 +418,10 @@ The two heaps approach can be found under `9. Two heaps` [here].
389418
1. Sliding Window Median: https://leetcode.com/problems/sliding-window-median/
390419
1. IPO: https://leetcode.com/problems/ipo/
391420

392-
### Pattern: Two Pointers
421+
</details>
422+
423+
<details>
424+
<summary>Two Pointers</summary>
393425

394426
The two pointer approach can be found under `2. Two Pointers or Iterators` [here].
395427

@@ -413,6 +445,8 @@ The two pointer approach can be found under `2. Two Pointers or Iterators` [here
413445
1. Trapping Rain Water: https://leetcode.com/problems/trapping-rain-water/
414446
1. Container With Most Water: https://leetcode.com/problems/container-with-most-water/
415447

448+
</details>
449+
416450
## Tips to Consider
417451

418452
```

0 commit comments

Comments
 (0)