|
1 | 1 | <h1>Blind 75</h1> |
2 | 2 | <a href="https://leetcode.com/discuss/general-discussion/460599/blind-75-leetcode-questions">Leetcode link to the post.</a> |
3 | 3 | <h4>Total Completed: 29</h4> |
4 | | - <h2>Array</h2> |
| 4 | + <h2>Array (Solved: 4, Unsolved: 6)</h2> |
5 | 5 | <ul> |
6 | 6 | <li><a href="Programs/Two Sum.py">Two Sum</a> |
7 | 7 | <p><b>Approach</b>: Solved using hash table, you can even solve this using 2 pointer approach where you'd have to sort the array, but then you won't be able to return index. </p> |
|
27 | 27 | <li>Find Minimum in Rotated Sorted Array</li> |
28 | 28 | <li>Search in Rotated Sorted Array</li> |
29 | 29 | </ul> |
30 | | - <h2>Binary</h2> |
| 30 | + <h2>Binary (Solved: 1, Unsolved: 4)</h2> |
31 | 31 | <ul> |
32 | 32 | <li><a href="Programs/Sum of Two Integers.py">Sum of Two Integers</a> |
33 | 33 | <p><b>Approach</b>: We can add 2 integers without using any arithmetic operator by using half adder.<br/> |
|
102 | 102 | <li>Missing Number</li> |
103 | 103 | <li>Reverse Bits</li> |
104 | 104 | </ul> |
105 | | - <h2>Dynamic Programming</h2> |
| 105 | + <h2>Dynamic Programming (Not started this)</h2> |
106 | 106 | <ul> |
107 | 107 | <li>Climbing Stairs</li> |
108 | 108 | <li>Coin Change</li> |
|
116 | 116 | <li>Unique Paths</li> |
117 | 117 | <li>Jump Game</li> |
118 | 118 | </ul> |
119 | | - <h2>Graph</h2> |
| 119 | + <h2>Graph (Solved: 4, Unsolved: 4)</h2> |
120 | 120 | <ul> |
121 | 121 | <li><a href="Programs/Clone Graph.py">Clone Graph</a> |
122 | 122 | <p><b>Approach</b>: Used both dfs and bfs to copy the graph. Leetcode accepted.</p> |
|
154 | 154 | <li>Graph Valid Tree</li> |
155 | 155 | <li>Number of Connected Components in an Undirected Graph</li> |
156 | 156 | </ul> |
157 | | - <h2>Interval</h2> |
| 157 | + <h2>Interval (Not started this)</h2> |
158 | 158 | <ul> |
159 | 159 | <li>Insert Interval</li> |
160 | 160 | <li>Merge Intervals</li> |
161 | 161 | <li>Non-overlapping Intervals</li> |
162 | 162 | <li>Meeting Rooms</li> |
163 | 163 | <li>Meeting Rooms II</li> |
164 | 164 | </ul> |
165 | | - <h2>Linked List</h2> |
| 165 | + <h2>Linked List (Solved all)</h2> |
166 | 166 | <ul> |
167 | 167 | <li><a href="Programs/Reverse Linked List.py">Reverse Linked List</a> |
168 | 168 | <p><b>Approach</b>: Used 3 pointer approach </p> |
|
193 | 193 | </p> |
194 | 194 | </li> |
195 | 195 | </ul> |
196 | | - <h2>Matrix</h2> |
| 196 | + <h2>Matrix (Solved all)</h2> |
197 | 197 | <ul> |
198 | 198 | <li><a href="Programs/Set Matrix Zeroes.py">Set Matrix Zeroes</a> |
199 | 199 | <p><b>Approach</b>: Set the row and col of the cell with zero to value "x". |
|
219 | 219 | </p> |
220 | 220 | </li> |
221 | 221 | </ul> |
222 | | - <h2>String</h2> |
| 222 | + <h2>String (Solved: 2, Unsolve: 8)</h2> |
223 | 223 | <ul> |
224 | 224 | <li><a href="Programs/Longest%20Substring%20Without%20Repeating%20Characters.py">Longest Substring Without Repeating Characters</a> <br/> |
225 | 225 | <p><b>Approach</b>: We use sliding window for this one. Use hash table to keep track of the letters in the window.</p> |
|
238 | 238 | <li>Palindromic Substrings</li> |
239 | 239 | <li>Encode and Decode Strings (Leetcode Premium)</li> |
240 | 240 | </ul> |
241 | | - <h2>Tree</h2> |
| 241 | + <h2>Tree (Solved: 8, Unsolved: 6)</h2> |
242 | 242 | <ul> |
243 | 243 | <li><a href="Programs/Maximum Depth of Binary Tree.py">Maximum Depth of Binary Tree</a> |
244 | 244 | <p><b>Approach</b>: done using simple (any)-order traversal.</p> |
|
284 | 284 | <li>Add and Search Word</li> |
285 | 285 | <li>Word Search II</li> |
286 | 286 | </ul> |
287 | | - <h2>Heap</h2> |
| 287 | + <h2>Heap (Solved: 1, Unsolved: 2)</h2> |
288 | 288 | <ul> |
289 | | - <li>Merge K Sorted Lists</li> |
290 | | - <li>Top K Frequent Elements</li> |
| 289 | + <li><a href="Programs/Merge K sorted Lists.py">Merge K Sorted Lists</a> </li> |
| 290 | + <li><a href="Programs/Top K Frequent Elements.py">Top K Frequent Elements</a> |
| 291 | + <p><b>Approach</b>: First build a hash table with key: element, value: frequency.<br/> |
| 292 | + Then Create a heap and add all elements from the hash to the heap in form of tuple (python thing).<br/> |
| 293 | + Remove the top k elements from the heap. |
| 294 | + </p> |
| 295 | + </li> |
291 | 296 | <li>Find Median from Data Stream</li> |
292 | 297 | </ul> |
293 | 298 |
|
|
0 commit comments