Skip to content

Commit 0569c9f

Browse files
committed
替换HTML标签
1 parent 84690e4 commit 0569c9f

File tree

1,489 files changed

+3589
-3589
lines changed

Some content is hidden

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

1,489 files changed

+3589
-3589
lines changed

docs/1341-movie-rating.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Write a solution to:
6363
The result format is in the following example.
6464

6565

66-
<strong class="example">Example 1:*
66+
*Example 1:*
6767

6868
[subs="verbatim,quotes"]
6969
----

docs/1342-number-of-steps-to-reduce-a-number-to-zero.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Given an integer `num`, return _the number of steps to reduce it to zero_.
88
In one step, if the current number is even, you have to divide it by `2`, otherwise, you have to subtract `1` from it.
99

1010

11-
<strong class="example">Example 1:*
11+
*Example 1:*
1212

1313
[subs="verbatim,quotes"]
1414
----
@@ -23,7 +23,7 @@ Step 5) 2 is even; divide by 2 and obtain 1.
2323
Step 6) 1 is odd; subtract 1 and obtain 0.
2424
----
2525

26-
<strong class="example">Example 2:*
26+
*Example 2:*
2727

2828
[subs="verbatim,quotes"]
2929
----
@@ -36,7 +36,7 @@ Step 3) 2 is even; divide by 2 and obtain 1.
3636
Step 4) 1 is odd; subtract 1 and obtain 0.
3737
----
3838

39-
<strong class="example">Example 3:*
39+
*Example 3:*
4040

4141
[subs="verbatim,quotes"]
4242
----

docs/1343-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Given an array of integers `arr` and two integers `k` and `threshold`, return _the number of sub-arrays of size _`k`_ and average greater than or equal to _`threshold`.
77
88
9-
<strong class="example">Example 1:*
9+
*Example 1:*
1010
1111
[subs="verbatim,quotes"]
1212
----
@@ -15,7 +15,7 @@ Given an array of integers `arr` and two integers `k` and `threshold`, return _t
1515
*Explanation:* Sub-arrays [2,5,5],[5,5,5] and [5,5,8] have averages 4, 5 and 6 respectively. All other sub-arrays of size 3 have averages less than 4 (the threshold).
1616
----
1717
18-
<strong class="example">Example 2:*
18+
*Example 2:*
1919
2020
[subs="verbatim,quotes"]
2121
----

docs/1344-angle-between-hands-of-a-clock.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ Given two numbers, `hour` and `minutes`, return _the smaller angle (in degrees)
88
Answers within `10^-5^` of the actual value will be accepted as correct.
99

1010

11-
<strong class="example">Example 1:*
11+
*Example 1:*
1212
<img alt="" src="https://assets.leetcode.com/uploads/2019/12/26/sample_1_1673.png" style="width: 300px; height: 296px;" />
1313
[subs="verbatim,quotes"]
1414
----
1515
*Input:* hour = 12, minutes = 30
1616
*Output:* 165
1717
----
1818

19-
<strong class="example">Example 2:*
19+
*Example 2:*
2020
<img alt="" src="https://assets.leetcode.com/uploads/2019/12/26/sample_2_1673.png" style="width: 300px; height: 301px;" />
2121
[subs="verbatim,quotes"]
2222
----
2323
*Input:* hour = 3, minutes = 30
2424
*Output:* 75
2525
----
2626

27-
<strong class="example">Example 3:*
27+
*Example 3:*
2828
<img alt="" src="https://assets.leetcode.com/uploads/2019/12/26/sample_3_1673.png" style="width: 300px; height: 301px;" />
2929
[subs="verbatim,quotes"]
3030
----

docs/1345-jump-game-iv.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Return _the minimum number of steps_ to reach the *last index* of the array.
1818
Notice that you can not jump outside of the array at any time.
1919

2020

21-
<strong class="example">Example 1:*
21+
*Example 1:*
2222

2323
[subs="verbatim,quotes"]
2424
----
@@ -27,7 +27,7 @@ Notice that you can not jump outside of the array at any time.
2727
*Explanation:* You need three jumps from index 0 --> 4 --> 3 --> 9. Note that index 9 is the last index of the array.
2828
----
2929

30-
<strong class="example">Example 2:*
30+
*Example 2:*
3131

3232
[subs="verbatim,quotes"]
3333
----
@@ -36,7 +36,7 @@ Notice that you can not jump outside of the array at any time.
3636
*Explanation:* Start index is the last index. You do not need to jump.
3737
----
3838

39-
<strong class="example">Example 3:*
39+
*Example 3:*
4040

4141
[subs="verbatim,quotes"]
4242
----

docs/1346-check-if-n-and-its-double-exist.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Given an array `arr` of integers, check if there exist two indices `i` and `j` s
1212
1313
1414
15-
<strong class="example">Example 1:*
15+
*Example 1:*
1616

1717
[subs="verbatim,quotes"]
1818
----
@@ -21,7 +21,7 @@ Given an array `arr` of integers, check if there exist two indices `i` and `j` s
2121
*Explanation:* For i = 0 and j = 2, arr[i] == 10 == 2 * 5 == 2 * arr[j]
2222
----
2323

24-
<strong class="example">Example 2:*
24+
*Example 2:*
2525

2626
[subs="verbatim,quotes"]
2727
----

docs/1347-minimum-number-of-steps-to-make-two-strings-anagram.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Return _the minimum number of steps_ to make `t` an anagram of `s`.
1010
An *Anagram* of a string is a string that contains the same characters with a different (or the same) ordering.
1111

1212

13-
<strong class="example">Example 1:*
13+
*Example 1:*
1414

1515
[subs="verbatim,quotes"]
1616
----
@@ -19,7 +19,7 @@ An *Anagram* of a string is a string that contains the same characters with a di
1919
*Explanation:* Replace the first 'a' in t with b, t = "bba" which is anagram of s.
2020
----
2121

22-
<strong class="example">Example 2:*
22+
*Example 2:*
2323

2424
[subs="verbatim,quotes"]
2525
----
@@ -28,7 +28,7 @@ An *Anagram* of a string is a string that contains the same characters with a di
2828
*Explanation:* Replace 'p', 'r', 'a', 'i' and 'c' from t with proper characters to make t anagram of s.
2929
----
3030

31-
<strong class="example">Example 3:*
31+
*Example 3:*
3232

3333
[subs="verbatim,quotes"]
3434
----

docs/1348-tweet-counts-per-frequency.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Implement the `TweetCounts` class:
3030
3131
3232
33-
<strong class="example">Example:*
33+
*Example:*
3434

3535
[subs="verbatim,quotes"]
3636
----

docs/1349-maximum-students-taking-exam.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Students can see the answers of those sitting next to the left, right, upper lef
1010
Students must be placed in seats in good condition.
1111
1212
13-
<strong class="example">Example 1:*
13+
*Example 1:*
1414
<img height="200" src="https://assets.leetcode.com/uploads/2020/01/29/image.png" width="339" />
1515
[subs="verbatim,quotes"]
1616
----
@@ -21,7 +21,7 @@ Students must be placed in seats in good condition.
2121
*Explanation:* Teacher can place 4 students in available seats so they don't cheat on the exam.
2222
----
2323

24-
<strong class="example">Example 2:*
24+
*Example 2:*
2525

2626
[subs="verbatim,quotes"]
2727
----
@@ -35,7 +35,7 @@ Students must be placed in seats in good condition.
3535
3636
----
3737

38-
<strong class="example">Example 3:*
38+
*Example 3:*
3939

4040
[subs="verbatim,quotes"]
4141
----

docs/1351-count-negative-numbers-in-a-sorted-matrix.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Given a `m x n` matrix `grid` which is sorted in non-increasing order both row-wise and column-wise, return _the number of *negative* numbers in_ `grid`.
77

88

9-
<strong class="example">Example 1:*
9+
*Example 1:*
1010

1111
[subs="verbatim,quotes"]
1212
----
@@ -15,7 +15,7 @@ Given a `m x n` matrix `grid` which is sorted in non-increasing order both row-w
1515
*Explanation:* There are 8 negatives number in the matrix.
1616
----
1717

18-
<strong class="example">Example 2:*
18+
*Example 2:*
1919

2020
[subs="verbatim,quotes"]
2121
----

docs/1352-product-of-the-last-k-numbers.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Implement the `ProductOfNumbers` class:
1616
The test cases are generated so that, at any time, the product of any contiguous sequence of numbers will fit into a single 32-bit integer without overflowing.
1717

1818

19-
<strong class="example">Example:*
19+
*Example:*
2020

2121
[subs="verbatim,quotes"]
2222
----

docs/1353-maximum-number-of-events-that-can-be-attended.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can attend an event `i` at any day `d` where `startTime<sub>i</sub> <= d <=
1010
Return _the maximum number of events you can attend_.
1111

1212

13-
<strong class="example">Example 1:*
13+
*Example 1:*
1414
<img alt="" src="https://assets.leetcode.com/uploads/2020/02/05/e1.png" style="width: 400px; height: 267px;" />
1515
[subs="verbatim,quotes"]
1616
----
@@ -23,7 +23,7 @@ Attend the second event on day 2.
2323
Attend the third event on day 3.
2424
----
2525

26-
<strong class="example">Example 2:*
26+
*Example 2:*
2727

2828
[subs="verbatim,quotes"]
2929
----

docs/1354-construct-target-array-with-multiple-sums.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You are given an array `target` of n integers. From a starting array `arr` consi
1414
Return `true` _if it is possible to construct the_ `target` _array from_ `arr`_, otherwise, return_ `false`.
1515

1616

17-
<strong class="example">Example 1:*
17+
*Example 1:*
1818

1919
[subs="verbatim,quotes"]
2020
----
@@ -27,7 +27,7 @@ Return `true` _if it is possible to construct the_ `target` _array from_ `arr`_,
2727
[9, 3, 5] Done
2828
----
2929

30-
<strong class="example">Example 2:*
30+
*Example 2:*
3131

3232
[subs="verbatim,quotes"]
3333
----
@@ -36,7 +36,7 @@ Return `true` _if it is possible to construct the_ `target` _array from_ `arr`_,
3636
*Explanation:* Impossible to create target array from [1,1,1,1].
3737
----
3838

39-
<strong class="example">Example 3:*
39+
*Example 3:*
4040

4141
[subs="verbatim,quotes"]
4242
----

docs/1356-sort-integers-by-the-number-of-1-bits.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You are given an integer array `arr`. Sort the integers in the array in ascendin
88
Return _the array after sorting it_.
99
1010
11-
<strong class="example">Example 1:*
11+
*Example 1:*
1212
1313
[subs="verbatim,quotes"]
1414
----
@@ -21,7 +21,7 @@ Return _the array after sorting it_.
2121
The sorted array by bits is [0,1,2,4,8,3,5,6,7]
2222
----
2323
24-
<strong class="example">Example 2:*
24+
*Example 2:*
2525
2626
[subs="verbatim,quotes"]
2727
----

docs/1357-apply-discount-every-n-orders.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Implement the `Cashier` class:
1717
1818
1919
20-
<strong class="example">Example 1:*
20+
*Example 1:*
2121

2222
[subs="verbatim,quotes"]
2323
----

docs/1358-number-of-substrings-containing-all-three-characters.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Given a string `s` consisting only of characters _a_, _b_ and _c_.
88
Return the number of substrings containing *at least* one occurrence of all these characters _a_, _b_ and _c_.
99

1010

11-
<strong class="example">Example 1:*
11+
*Example 1:*
1212

1313
[subs="verbatim,quotes"]
1414
----
@@ -17,7 +17,7 @@ Return the number of substrings containing *at least* one occurrence of all thes
1717
*Explanation:* The substrings containing at least one occurrence of the characters _a_, _b_ and _c are "_abc_", "_abca_", "_abcab_", "_abcabc_", "_bca_", "_bcab_", "_bcabc_", "_cab_", "_cabc_" _and_ "_abc_" _(*again*)_. _
1818
----
1919

20-
<strong class="example">Example 2:*
20+
*Example 2:*
2121

2222
[subs="verbatim,quotes"]
2323
----
@@ -26,7 +26,7 @@ Return the number of substrings containing *at least* one occurrence of all thes
2626
*Explanation:* The substrings containing at least one occurrence of the characters _a_, _b_ and _c are "_aaacb_", "_aacb_" _and_ "_acb_".__ _
2727
----
2828

29-
<strong class="example">Example 3:*
29+
*Example 3:*
3030

3131
[subs="verbatim,quotes"]
3232
----

docs/1359-count-all-valid-pickup-and-delivery-options.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Count all valid pickup/delivery possible sequences such that delivery(i) is alwa
1010
Since the answer may be too large, return it modulo 10^9 + 7.
1111

1212

13-
<strong class="example">Example 1:*
13+
*Example 1:*
1414

1515
[subs="verbatim,quotes"]
1616
----
@@ -19,7 +19,7 @@ Since the answer may be too large, return it modulo 10^9 + 7.
1919
*Explanation:* Unique order (P1, D1), Delivery 1 always is after of Pickup 1.
2020
----
2121

22-
<strong class="example">Example 2:*
22+
*Example 2:*
2323

2424
[subs="verbatim,quotes"]
2525
----
@@ -30,7 +30,7 @@ Since the answer may be too large, return it modulo 10^9 + 7.
3030
This is an invalid order (P1,D2,P2,D1) because Pickup 2 is after of Delivery 2.
3131
----
3232

33-
<strong class="example">Example 3:*
33+
*Example 3:*
3434

3535
[subs="verbatim,quotes"]
3636
----

docs/1360-number-of-days-between-two-dates.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Write a program to count the number of days between two dates.
88
The two dates are given as strings, their format is `YYYY-MM-DD` as shown in the examples.
99

1010

11-
<strong class="example">Example 1:*
11+
*Example 1:*
1212
[subs="verbatim,quotes"]
1313
----*Input:* date1 = "2019-06-29", date2 = "2019-06-30"
1414
*Output:* 1
15-
----<strong class="example">Example 2:*
15+
----*Example 2:*
1616
[subs="verbatim,quotes"]
1717
----*Input:* date1 = "2020-01-15", date2 = "2019-12-31"
1818
*Output:* 15

docs/1361-validate-binary-tree-nodes.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ If node `i` has no left child then `leftChild[i]` will equal `-1`, similarly for
1010
Note that the nodes have no values and that we only use the node numbers in this problem.
1111

1212

13-
<strong class="example">Example 1:*
13+
*Example 1:*
1414
<img alt="" src="https://assets.leetcode.com/uploads/2019/08/23/1503_ex1.png" style="width: 195px; height: 287px;" />
1515
[subs="verbatim,quotes"]
1616
----
1717
*Input:* n = 4, leftChild = [1,-1,3,-1], rightChild = [2,-1,-1,-1]
1818
*Output:* true
1919
----
2020

21-
<strong class="example">Example 2:*
21+
*Example 2:*
2222
<img alt="" src="https://assets.leetcode.com/uploads/2019/08/23/1503_ex2.png" style="width: 183px; height: 272px;" />
2323
[subs="verbatim,quotes"]
2424
----
2525
*Input:* n = 4, leftChild = [1,-1,3,-1], rightChild = [2,3,-1,-1]
2626
*Output:* false
2727
----
2828

29-
<strong class="example">Example 3:*
29+
*Example 3:*
3030
<img alt="" src="https://assets.leetcode.com/uploads/2019/08/23/1503_ex3.png" style="width: 82px; height: 174px;" />
3131
[subs="verbatim,quotes"]
3232
----

0 commit comments

Comments
 (0)