|
3 | 3 | ### Stack Basics
|
4 | 4 | | Problem | Difficulty |
|
5 | 5 | |------------------|------------|
|
6 |
| -|[155. Min Stack](../leetcode/155.min-stack.md)|Easy| |
| 6 | +|**[155. Min Stack](../leetcode/155.min-stack.md)**|Easy| |
7 | 7 | |[232. Implement Queue using Stacks](../leetcode/232.implement-queue-using-stacks.md)|Easy|
|
8 | 8 | |[225. Implement Stack using Queues](../leetcode/225.implement-stack-using-queues.md)|Easy|
|
9 | 9 | |[1472. Design Browser History](../leetcode/1472.design-browser-history.md)|Medium (1453)|
|
10 |
| -|[946. Validate Stack Sequences](../leetcode/946.validate-stack-sequences.md)|Medium (1461)| |
| 10 | +|**[946. Validate Stack Sequences](../leetcode/946.validate-stack-sequences.md)**|Medium (1461)| |
11 | 11 | |[71. Simplify Path](../leetcode/71.simplify-path.md)|Medium|
|
12 |
| -|[636. Exclusive Time of Functions](../leetcode/636.exclusive-time-of-functions.md)|Medium| |
| 12 | +|@@**[636. Exclusive Time of Functions](../leetcode/636.exclusive-time-of-functions.md)**|Medium| |
13 | 13 |
|
14 |
| -> * https://leetcode.com/problems/maximum-frequency-stack/description/ h 2027 |
| 14 | +> * **https://leetcode.com/problems/maximum-frequency-stack/description/** h 2027 |
15 | 15 | >
|
16 | 16 | > * Solved: https://leetcode.com/problems/build-an-array-with-stack-operations/description/ 1180
|
17 | 17 | > * Solved: https://leetcode.com/problems/design-a-stack-with-increment-operation/description/ 1285 // Using array + top pointer to simulate stack, should have very clear definition of the top pointer. 2024/10/21
|
|
21 | 21 | ### Nested Structure
|
22 | 22 | | Problem | Difficulty |
|
23 | 23 | |------------------|------------|
|
24 |
| -|[150. Evaluate Reverse Polish Notation](../leetcode/150.evaluate-reverse-polish-notation.md)|Medium| |
25 |
| -|[1190. Reverse Substrings Between Each Pair of Parentheses](../leetcode/1190.reverse-substrings-between-each-pair-of-parentheses.md)|Medium (1485)| |
26 |
| -|[394. Decode String](../leetcode/394.decode-string.md)|Medium| |
27 |
| -|[856. Score of Parentheses](../leetcode/856.score-of-parentheses.md)|Medium (1562)| |
| 24 | +|**[150. Evaluate Reverse Polish Notation](../leetcode/150.evaluate-reverse-polish-notation.md)**|Medium| |
| 25 | +|@@[1190. Reverse Substrings Between Each Pair of Parentheses](../leetcode/1190.reverse-substrings-between-each-pair-of-parentheses.md)|Medium (1485)| |
| 26 | +|**[394. Decode String](../leetcode/394.decode-string.md)**|Medium| |
| 27 | +|@@[856. Score of Parentheses](../leetcode/856.score-of-parentheses.md)|Medium (1562)| |
28 | 28 | |[1106. Parsing A Boolean Expression](../leetcode/1106.parsing-a-boolean-expression.md)|Hard (1880)|
|
29 |
| -|[227. Basic Calculator II](../leetcode/227.basic-calculator-ii.md)|Medium| |
30 |
| -|[224. Basic Calculator](../leetcode/224.basic-calculator.md)|Hard| |
| 29 | +|@@**[227. Basic Calculator II](../leetcode/227.basic-calculator-ii.md)**|Medium| |
| 30 | +|@@**[224. Basic Calculator](../leetcode/224.basic-calculator.md)**|Hard| |
31 | 31 |
|
32 |
| -> * https://leetcode.com/problems/number-of-atoms/description/ h |
| 32 | +> * **https://leetcode.com/problems/number-of-atoms/description/** h |
33 | 33 |
|
34 | 34 | ### Parentheses
|
35 | 35 | | Problem | Difficulty |
|
36 | 36 | |------------------|------------|
|
37 |
| -|[20. Valid Parentheses](../leetcode/20.valid-parentheses.md)|Easy| |
| 37 | +|**[20. Valid Parentheses](../leetcode/20.valid-parentheses.md)**|Easy| |
38 | 38 | |[1614. Maximum Nesting Depth of the Parentheses](../leetcode/1614.maximum-nesting-depth-of-the-parentheses.md)|Easy (1322)|
|
39 |
| -|[1021. Remove Outermost Parentheses](../leetcode/1021.remove-outermost-parentheses.md)|Easy (1311)| |
40 |
| -|[921. Minimum Add to Make Parentheses Valid](../leetcode/921.minimum-add-to-make-parentheses-valid.md)|Medium (1242)| |
41 |
| -|[678. Valid Parenthesis String](../leetcode/678.valid-parenthesis-string.md)|Medium (1700)| |
42 |
| -|[1541. Minimum Insertions to Balance a Parentheses String](../leetcode/1541.minimum-insertions-to-balance-a-parentheses-string.md)|Medium (1759)| |
43 |
| -|[1249. Minimum Remove to Make Valid Parentheses](../leetcode/1249.minimum-remove-to-make-valid-parentheses.md)|Medium (1657)| |
44 |
| -|[1963. Minimum Number of Swaps to Make the String Balanced](../leetcode/1963.minimum-number-of-swaps-to-make-the-string-balanced.md)|Medium (1688)| |
| 39 | +|@@[1021. Remove Outermost Parentheses](../leetcode/1021.remove-outermost-parentheses.md)|Easy (1311)| |
| 40 | +|@@**[921. Minimum Add to Make Parentheses Valid](../leetcode/921.minimum-add-to-make-parentheses-valid.md)**|Medium (1242)| |
| 41 | +|@@**[678. Valid Parenthesis String](../leetcode/678.valid-parenthesis-string.md)**|Medium (1700)| |
| 42 | +|@@[1541. Minimum Insertions to Balance a Parentheses String](../leetcode/1541.minimum-insertions-to-balance-a-parentheses-string.md)|Medium (1759)| |
| 43 | +|**[1249. Minimum Remove to Make Valid Parentheses](../leetcode/1249.minimum-remove-to-make-valid-parentheses.md)**|Medium (1657)| |
| 44 | +|@@[1963. Minimum Number of Swaps to Make the String Balanced](../leetcode/1963.minimum-number-of-swaps-to-make-the-string-balanced.md)|Medium (1688)| |
45 | 45 |
|
46 |
| -> * https://leetcode.com/problems/remove-invalid-parentheses/description/ h |
| 46 | +> * **https://leetcode.com/problems/remove-invalid-parentheses/description/** h |
47 | 47 |
|
48 | 48 | ### Remove Adjacent Items
|
49 | 49 | | Problem | Difficulty |
|
50 | 50 | |------------------|------------|
|
51 |
| -|[735. Asteroid Collision](../leetcode/735.asteroid-collision.md)|Medium| |
| 51 | +|**[735. Asteroid Collision](../leetcode/735.asteroid-collision.md)**|Medium| |
52 | 52 | |[1047. Remove All Adjacent Duplicates In String](../leetcode/1047.remove-all-adjacent-duplicates-in-string.md)|Easy (1286)|
|
53 | 53 |
|
54 | 54 | > * https://leetcode.com/problems/make-the-string-great/description/ 1344
|
55 | 55 | > * https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/description/ 1426
|
56 |
| -> * https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/description/ 1541 |
| 56 | +> * **https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/description/** 1541 |
57 | 57 | > * https://leetcode.com/problems/maximum-score-from-removing-substrings/description/ 1868
|
58 | 58 | > * Solved: https://leetcode.com/problems/minimum-string-length-after-removing-substrings 1282 // Easy to solve by stack and learned two pointers approach, 2024/10/30
|
59 | 59 |
|
60 | 60 | ### Monotonic Stack
|
61 | 61 | | Problem | Difficulty |
|
62 | 62 | |------------------|------------|
|
63 |
| -|[496. Next Greater Element I](../leetcode/496.next-greater-element-i.md)|Easy| |
| 63 | +|**[496. Next Greater Element I](../leetcode/496.next-greater-element-i.md)**|Easy| |
64 | 64 | |[503. Next Greater Element II](../leetcode/503.next-greater-element-ii.md)|Medium|
|
65 |
| -|[739. Daily Temperatures](../leetcode/739.daily-temperatures.md)|Medium| |
| 65 | +|**[739. Daily Temperatures](../leetcode/739.daily-temperatures.md)**|Medium| |
66 | 66 | |[901. Online Stock Span](../leetcode/901.online-stock-span.md)|Medium (1709)|
|
67 |
| -|[402. Remove K Digits](../leetcode/402.remove-k-digits.md)|Medium (1800)| |
68 |
| -|[42. Trapping Rain Water](../leetcode/42.trapping-rain-water.md)|Hard| |
| 67 | +|@@[402. Remove K Digits](../leetcode/402.remove-k-digits.md)|Medium (1800)| |
| 68 | +|**[42. Trapping Rain Water](../leetcode/42.trapping-rain-water.md)**|Hard| |
69 | 69 | |[907. Sum of Subarray Minimums](../leetcode/907.sum-of-subarray-minimums.md)|Medium (1976)|
|
70 | 70 | |[2104. Sum of Subarray Ranges](../leetcode/2104.sum-of-subarray-ranges.md)|Medium (2000)|
|
71 | 71 | |[316. Remove Duplicate Letters](../leetcode/316.remove-duplicate-letters.md)|Medium (2184?)|
|
72 |
| -|[84. Largest Rectangle in Histogram](../leetcode/84.largest-rentangle-in-histogram.md)|Hard| |
| 72 | +|**[84. Largest Rectangle in Histogram](../leetcode/84.largest-rentangle-in-histogram.md)**|Hard| |
73 | 73 | |[2866. Beautiful Towers II](../leetcode/2866.beautiful-towers-ii.md)|Medium (2071)|
|
74 | 74 |
|
75 | 75 | > * https://leetcode.com/problems/final-prices-with-a-special-discount-in-a-shop/description/ 1212
|
|
78 | 78 | > * https://leetcode.com/problems/find-the-most-competitive-subsequence/description/ 1802
|
79 | 79 | > * https://leetcode.com/problems/longest-well-performing-interval/description/ 1908
|
80 | 80 | > * https://leetcode.com/problems/maximum-score-of-a-good-subarray/description/ 1945
|
81 |
| -> * https://leetcode.com/problems/132-pattern/ 2000 |
| 81 | +> * **https://leetcode.com/problems/132-pattern/** 2000 |
82 | 82 | > * https://leetcode.com/problems/maximum-subarray-min-product/description/ 2051
|
83 | 83 | > * https://leetcode.com/problems/maximal-rectangle/description/ h
|
84 | 84 |
|
85 | 85 | ### Queue Basics
|
86 | 86 | | Problem | Difficulty |
|
87 | 87 | |------------------|------------|
|
88 |
| -|[622. Design Circular Queue](../leetcode/622.design-circular-queue.md)|Medium| |
| 88 | +|**[622. Design Circular Queue](../leetcode/622.design-circular-queue.md)**|Medium| |
89 | 89 | |[1823. Find the Winner of the Circular Game](../leetcode/1823.find-the-winner-of-the-circular-game.md)|Medium|
|
90 | 90 |
|
91 | 91 | > * https://leetcode.com/problems/number-of-recent-calls/description/ 1337
|
92 | 92 | > * https://leetcode.com/problems/reveal-cards-in-increasing-order/description/ 1686
|
93 | 93 | > * https://leetcode.com/problems/dota2-senate/description/ m
|
94 |
| -> * https://leetcode.com/problems/design-circular-deque/description/ m |
| 94 | +> * **https://leetcode.com/problems/design-circular-deque/description/** m |
95 | 95 | > * https://leetcode.com/problems/design-front-middle-back-queue/description/ m
|
96 | 96 |
|
97 | 97 | ### Monotonic Queue
|
98 | 98 | | Problem | Difficulty |
|
99 | 99 | |------------------|------------|
|
100 |
| -|[239. Sliding Window Maximum](../leetcode/239.sliding-window-maximium.md)|Hard| |
| 100 | +|**[239. Sliding Window Maximum](../leetcode/239.sliding-window-maximium.md)**|Hard| |
101 | 101 |
|
102 | 102 | > * https://leetcode.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit/description/ 1672
|
0 commit comments