Skip to content

Commit 3e53b17

Browse files
author
Openset
committed
Add: Related Topics
1 parent 319c8ab commit 3e53b17

File tree

736 files changed

+3199
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

736 files changed

+3199
-117
lines changed

problems/01-matrix/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ Output:
4949
<li>The cells are adjacent in only four directions: up, down, left and right.</li>
5050
</ol>
5151
</p>
52+
53+
54+
### Related Topics
55+
[[Depth-first Search](https://github.com/openset/leetcode/tree/master/tag/depth-first-search/README.md)] [[Breadth-first Search](https://github.com/openset/leetcode/tree/master/tag/breadth-first-search/README.md)]

problems/1-bit-and-2-bit-characters/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,11 @@ The only way to decode it is two-bit character and two-bit character. So the las
3636
<li><code>bits[i]</code> is always <code>0</code> or <code>1</code>.</li>
3737
</p>
3838

39+
### Related Topics
40+
[[Array](https://github.com/openset/leetcode/tree/master/tag/array/README.md)]
41+
3942
### Similar Questions
4043
1. [Gray Code](https://github.com/openset/leetcode/tree/master/problems/gray-code) (Medium)
44+
45+
### Hints
46+
1. Keep track of where the next character starts. At the end, you want to know if you started on the last bit.

problems/132-pattern/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@ that <b>i</b> < <b>j</b> < <b>k</b> and a<sub><b>i</b></sub> < a<sub><b>k</b></s
4141

4242
<b>Explanation:</b> There are three 132 patterns in the sequence: [-1, 3, 2], [-1, 3, 0] and [-1, 2, 0].
4343
</pre>
44-
</p>
44+
</p>
45+
46+
### Related Topics
47+
[[Stack](https://github.com/openset/leetcode/tree/master/tag/stack/README.md)]

problems/2-keys-keyboard/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,11 @@ In step 3, we use <b>Paste</b> operation to get 'AAA'.
3838
</ol>
3939
</p>
4040

41+
### Related Topics
42+
[[Dynamic Programming](https://github.com/openset/leetcode/tree/master/tag/dynamic-programming/README.md)]
43+
4144
### Similar Questions
4245
1. [4 Keys Keyboard](https://github.com/openset/leetcode/tree/master/problems/4-keys-keyboard) (Medium)
46+
47+
### Hints
48+
1. How many characters may be there in the clipboard at the last step if n = 3? n = 7? n = 10? n = 24?

problems/24-game/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ You have 4 cards each containing a number from 1 to 9. You need to judge whethe
3333
<li>You cannot concatenate numbers together. For example, if the input is <code>[1, 2, 1, 2]</code>, we cannot write this as 12 + 12.</li>
3434
</ol>
3535
</p>
36-
</p>
36+
</p>
37+
38+
### Related Topics
39+
[[Depth-first Search](https://github.com/openset/leetcode/tree/master/tag/depth-first-search/README.md)]

problems/3sum-closest/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ The sum that is closest to the target is 2. (-1 + 2 + 1 = 2).
1818
</pre>
1919

2020

21+
### Related Topics
22+
[[Array](https://github.com/openset/leetcode/tree/master/tag/array/README.md)] [[Two Pointers](https://github.com/openset/leetcode/tree/master/tag/two-pointers/README.md)]
23+
2124
### Similar Questions
2225
1. [3Sum](https://github.com/openset/leetcode/tree/master/problems/3sum) (Medium)
2326
1. [3Sum Smaller](https://github.com/openset/leetcode/tree/master/problems/3sum-smaller) (Medium)

problems/3sum-with-multiplicity/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ and two 2s from [2,2,2,2] in 6 ways.
4747
<li><code>3 &lt;= A.length &lt;= 3000</code></li>
4848
<li><code>0 &lt;= A[i] &lt;= 100</code></li>
4949
<li><code>0 &lt;= target &lt;= 300</code></li>
50-
</ol>
50+
</ol>
51+
52+
### Related Topics
53+
[[Two Pointers](https://github.com/openset/leetcode/tree/master/tag/two-pointers/README.md)]

problems/3sum/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ A solution set is:
2626
</pre>
2727

2828

29+
### Related Topics
30+
[[Array](https://github.com/openset/leetcode/tree/master/tag/array/README.md)] [[Two Pointers](https://github.com/openset/leetcode/tree/master/tag/two-pointers/README.md)]
31+
2932
### Similar Questions
3033
1. [Two Sum](https://github.com/openset/leetcode/tree/master/problems/two-sum) (Easy)
3134
1. [3Sum Closest](https://github.com/openset/leetcode/tree/master/problems/3sum-closest) (Medium)

problems/4sum-ii/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ The two tuples are:
2929
</pre>
3030
</p>
3131

32+
### Related Topics
33+
[[Hash Table](https://github.com/openset/leetcode/tree/master/tag/hash-table/README.md)] [[Binary Search](https://github.com/openset/leetcode/tree/master/tag/binary-search/README.md)]
34+
3235
### Similar Questions
3336
1. [4Sum](https://github.com/openset/leetcode/tree/master/problems/4sum) (Medium)

problems/4sum/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ A solution set is:
2727
</pre>
2828

2929

30+
### Related Topics
31+
[[Array](https://github.com/openset/leetcode/tree/master/tag/array/README.md)] [[Hash Table](https://github.com/openset/leetcode/tree/master/tag/hash-table/README.md)] [[Two Pointers](https://github.com/openset/leetcode/tree/master/tag/two-pointers/README.md)]
32+
3033
### Similar Questions
3134
1. [Two Sum](https://github.com/openset/leetcode/tree/master/problems/two-sum) (Easy)
3235
1. [3Sum](https://github.com/openset/leetcode/tree/master/problems/3sum) (Medium)

0 commit comments

Comments
 (0)