Skip to content

Commit 3fc86d0

Browse files
committed
remove useless tags and format the document
1 parent fc36e01 commit 3fc86d0

File tree

378 files changed

+1829
-1829
lines changed

Some content is hidden

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

378 files changed

+1829
-1829
lines changed

docs/0003-longest-substring-without-repeating-characters.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Given a string, find the length of the *longest substring* without repeating cha
88
.Example 1:
99
[subs="verbatim,quotes"]
1010
----
11-
*Input: * "abcabcbb"
12-
*Output: * 3
11+
*Input:* "abcabcbb"
12+
*Output:* 3
1313
*Explanation:* The answer is `"abc"`, with the length of 3.
1414
----
1515

docs/0014-longest-common-prefix.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ If there is no common prefix, return an empty string `""`.
1010

1111
[subs="verbatim,quotes"]
1212
----
13-
*Input: *["flower","flow","flight"]
13+
*Input:* ["flower","flow","flight"]
1414
*Output:* "fl"
1515
----
1616

1717
*Example 2:*
1818

1919
[subs="verbatim,quotes"]
2020
----
21-
*Input: *["dog","racecar","car"]
21+
*Input:* ["dog","racecar","car"]
2222
*Output:* ""
2323
*Explanation:* There is no common prefix among the input strings.
2424
----

docs/0017-letter-combinations-of-a-phone-number.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ image::http://upload.wikimedia.org/wikipedia/commons/thumb/7/73/Telephone-keypad
1212

1313
[subs="verbatim,quotes"]
1414
----
15-
*Input: *"23"
15+
*Input:* "23"
1616
*Output:* ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].
1717
----
1818

docs/0071-simplify-path.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,50 +69,50 @@ Note that the returned canonical path must always begin with a slash `/`, and th
6969

7070
[subs="verbatim,quotes"]
7171
----
72-
*Input: "*<span id="example-input-1-1">/home/"
73-
*Output: "*<span id="example-output-1">/home"
72+
*Input:* "/home/"
73+
*Output:* "/home"
7474
*Explanation:* Note that there is no trailing slash after the last directory name.
7575
----
7676

7777
*Example 2:*
7878

7979
[subs="verbatim,quotes"]
8080
----
81-
*Input: "*<span id="example-input-1-1">/../"
82-
*Output: "*<span id="example-output-1">/"
81+
*Input:* "/../"
82+
*Output:* "/"
8383
*Explanation:* Going one level up from the root directory is a no-op, as the root level is the highest level you can go.
8484
----
8585

8686
*Example 3:*
8787

8888
[subs="verbatim,quotes"]
8989
----
90-
*Input: "*<span id="example-input-1-1">/home//foo/"
91-
*Output: "*<span id="example-output-1">/home/foo"
92-
*Explanation: *In the canonical path, multiple consecutive slashes are replaced by a single one.
90+
*Input:* "/home//foo/"
91+
*Output:* "/home/foo"
92+
*Explanation:* In the canonical path, multiple consecutive slashes are replaced by a single one.
9393
----
9494

9595
*Example 4:*
9696

9797
[subs="verbatim,quotes"]
9898
----
99-
*Input: "*<span id="example-input-1-1">/a/./b/../../c/"
100-
*Output: "*<span id="example-output-1">/c"
99+
*Input:* "/a/./b/../../c/"
100+
*Output:* "/c"
101101
----
102102

103103
*Example 5:*
104104

105105
[subs="verbatim,quotes"]
106106
----
107-
*Input: "*<span id="example-input-1-1">/a/../../b/../c//.//"
108-
*Output: "*<span id="example-output-1">/c"
107+
*Input:* "/a/../../b/../c//.//"
108+
*Output:* "/c"
109109
----
110110

111111
*Example 6:*
112112

113113
[subs="verbatim,quotes"]
114114
----
115-
*Input: "*<span id="example-input-1-1">/a//b////c/d//././/.."
116-
*Output: "*<span id="example-output-1">/a/b/c"
115+
*Input:* "/a//b////c/d//././/.."
116+
*Output:* "/a/b/c"
117117
----
118118

docs/0115-distinct-subsequences.adoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ A subsequence of a string is a new string which is formed from the original stri
1010

1111
[subs="verbatim,quotes"]
1212
----
13-
*Input: *S = `"rabbbit"`, T = `"rabbit"
13+
*Input:* S = `"rabbbit"`, T = `"rabbit"`
1414
*Output:* 3
15-
`*Explanation:
16-
*
15+
*Explanation:*
1716
As shown below, there are 3 ways you can generate "rabbit" from S.
1817
(The caret symbol ^ means the chosen letters)
1918
@@ -29,10 +28,9 @@ As shown below, there are 3 ways you can generate "rabbit" from S.
2928

3029
[subs="verbatim,quotes"]
3130
----
32-
*Input: *S = `"babgbag"`, T = `"bag"
31+
*Input:* S = `"babgbag"`, T = `"bag"`
3332
*Output:* 5
34-
`*Explanation:
35-
*
33+
*Explanation:*
3634
As shown below, there are 5 ways you can generate "bag" from S.
3735
(The caret symbol ^ means the chosen letters)
3836

docs/0126-word-ladder-ii.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ beginWord = "hit"
4444
endWord = "cog"
4545
wordList = ["hot","dot","dog","lot","log"]
4646
47-
*Output: *[]
47+
*Output:* []
4848
4949
*Explanation:* The endWord "cog" is not in wordList, therefore no possible* *transformation.
5050
----

docs/0127-word-ladder.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ beginWord = "hit",
3535
endWord = "cog",
3636
wordList = ["hot","dot","dog","lot","log","cog"]
3737
38-
*Output: *5
38+
*Output:* 5
3939
4040
*Explanation:* As one shortest transformation is "hit" -> "hot" -> "dot" -> "dog" -> "cog",
4141
return its length 5.

docs/0141-linked-list-cycle.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ To represent a cycle in the given linked list, we use an integer `pos` which rep
1515

1616
[subs="verbatim,quotes"]
1717
----
18-
*Input: *head = <span id="example-input-1-1">[3,2,0,-4], pos = <span id="example-input-1-2">1
19-
*Output: *<span id="example-output-1">true
18+
*Input:* head = [3,2,0,-4], pos = 1
19+
*Output:* true
2020
*Explanation:* There is a cycle in the linked list, where tail connects to the second node.
2121
----
2222

@@ -28,8 +28,8 @@ image::https://assets.leetcode.com/uploads/2018/12/07/circularlinkedlist.png[]
2828

2929
[subs="verbatim,quotes"]
3030
----
31-
*Input: *head = <span id="example-input-1-1">[1,2], pos = <span id="example-input-1-2">0
32-
*Output: *<span id="example-output-1">true
31+
*Input:* head = [1,2], pos = 0
32+
*Output:* true
3333
*Explanation:* There is a cycle in the linked list, where tail connects to the first node.
3434
----
3535

@@ -41,8 +41,8 @@ image::https://assets.leetcode.com/uploads/2018/12/07/circularlinkedlist_test2.p
4141

4242
[subs="verbatim,quotes"]
4343
----
44-
*Input: *head = <span id="example-input-1-1">[1], pos = <span id="example-input-1-2">-1
45-
*Output: *<span id="example-output-1">false
44+
*Input:* head = [1], pos = -1
45+
*Output:* false
4646
*Explanation:* There is no cycle in the linked list.
4747
----
4848

docs/0142-linked-list-cycle-ii.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ To represent a cycle in the given linked list, we use an integer `pos` which rep
8686

8787
[subs="verbatim,quotes"]
8888
----
89-
*Input: *head = [3,2,0,-4], pos = 1
90-
*Output: *tail connects to node index 1
89+
*Input:* head = [3,2,0,-4], pos = 1
90+
*Output:* tail connects to node index 1
9191
*Explanation:* There is a cycle in the linked list, where tail connects to the second node.
9292
----
9393

@@ -97,8 +97,8 @@ image::https://assets.leetcode.com/uploads/2018/12/07/circularlinkedlist.png[]
9797

9898
[subs="verbatim,quotes"]
9999
----
100-
*Input: *head = [1,2], pos = 0
101-
*Output: *tail connects to node index 0
100+
*Input:* head = [1,2], pos = 0
101+
*Output:* tail connects to node index 0
102102
*Explanation:* There is a cycle in the linked list, where tail connects to the first node.
103103
----
104104

@@ -108,8 +108,8 @@ image::https://assets.leetcode.com/uploads/2018/12/07/circularlinkedlist_test2.p
108108

109109
[subs="verbatim,quotes"]
110110
----
111-
*Input: *head = [1], pos = -1
112-
*Output: *no cycle
111+
*Input:* head = [1], pos = -1
112+
*Output:* no cycle
113113
*Explanation:* There is no cycle in the linked list.
114114
----
115115

docs/0151-reverse-words-in-a-string.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Given an input string, reverse the string word by word.
1111
[subs="verbatim,quotes"]
1212
----
1313
*Input:* "`the sky is blue`"
14-
*Output: *"`blue is sky the`"
14+
*Output:* "`blue is sky the`"
1515
----
1616

1717
*Example 2:*
1818

1919
[subs="verbatim,quotes"]
2020
----
2121
*Input:* " hello world! "
22-
*Output: *"world! hello"
22+
*Output:* "world! hello"
2323
*Explanation:* Your reversed string should not contain leading or trailing spaces.
2424
----
2525

@@ -28,7 +28,7 @@ Given an input string, reverse the string word by word.
2828
[subs="verbatim,quotes"]
2929
----
3030
*Input:* "a good example"
31-
*Output: *"example good a"
31+
*Output:* "example good a"
3232
*Explanation:* You need to reduce multiple spaces between two words to a single space in the reversed string.
3333
----
3434

docs/0160-intersection-of-two-linked-lists.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ image::https://assets.leetcode.com/uploads/2018/12/13/160_example_1.png[]
2828

2929
[subs="verbatim,quotes"]
3030
----
31-
*Input: *intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB = 3
31+
*Input:* intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB = 3
3232
*Output:* Reference of the node with value = 8
3333
*Input Explanation:* The intersected node's value is 8 (note that this must not be 0 if the two lists intersect). From the head of A, it reads as [4,1,8,4,5]. From the head of B, it reads as [5,0,1,8,4,5]. There are 2 nodes before the intersected node in A; There are 3 nodes before the intersected node in B.
3434
----
@@ -41,7 +41,7 @@ image::https://assets.leetcode.com/uploads/2018/12/13/160_example_2.png[]
4141

4242
[subs="verbatim,quotes"]
4343
----
44-
*Input: *intersectVal = 2, listA = [0,9,1,2,4], listB = [3,2,4], skipA = 3, skipB = 1
44+
*Input:* intersectVal = 2, listA = [0,9,1,2,4], listB = [3,2,4], skipA = 3, skipB = 1
4545
*Output:* Reference of the node with value = 2
4646
*Input Explanation:* The intersected node's value is 2 (note that this must not be 0 if the two lists intersect). From the head of A, it reads as [0,9,1,2,4]. From the head of B, it reads as [3,2,4]. There are 3 nodes before the intersected node in A; There are 1 node before the intersected node in B.
4747
@@ -55,7 +55,7 @@ image::https://assets.leetcode.com/uploads/2018/12/13/160_example_3.png[]
5555

5656
[subs="verbatim,quotes"]
5757
----
58-
*Input: *intersectVal = 0, listA = [2,6,4], listB = [1,5], skipA = 3, skipB = 2
58+
*Input:* intersectVal = 0, listA = [2,6,4], listB = [1,5], skipA = 3, skipB = 2
5959
*Output:* null
6060
*Input Explanation:* From the head of A, it reads as [2,6,4]. From the head of B, it reads as [1,5]. Since the two lists do not intersect, intersectVal must be 0, while skipA and skipB can be arbitrary values.
6161
*Explanation:* The two lists do not intersect, so return null.

docs/0165-compare-version-numbers.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You may assume the default revision number for each level of a version number to
2424
*Example 2:*
2525
[subs="verbatim,quotes"]
2626
----
27-
*Input: *`_version1_` = "1.0.1", `_version2_` = "1"
27+
*Input:* `_version1_` = "1.0.1", `_version2_` = "1"
2828
*Output:* 1
2929
----
3030

docs/0166-fraction-to-recurring-decimal.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ If the fractional part is repeating, enclose the repeating part in parentheses.
2929
[subs="verbatim,quotes"]
3030
----
3131
*Input:* numerator = 2, denominator = 3
32-
*Output: *"0.(6)"
32+
*Output:* "0.(6)"
3333
----
3434

docs/0171-excel-sheet-column-number.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ For example:
3232

3333
[subs="verbatim,quotes"]
3434
----
35-
*Input: *"AB"
35+
*Input:* "AB"
3636
*Output:* 28
3737
----
3838

3939
*Example 3:*
4040

4141
[subs="verbatim,quotes"]
4242
----
43-
*Input: *"ZY"
43+
*Input:* "ZY"
4444
*Output:* 701
4545
----

docs/0188-best-time-to-buy-and-sell-stock-iv.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public int maxProfit(int[] prices) {
8585
. https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/solution/yi-ge-fang-fa-tuan-mie-6-dao-gu-piao-wen-ti-by-lab/[一个方法团灭 6 道股票问题 - 最佳买卖股票时机含冷冻期 - 力扣(LeetCode)]
8686
. https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/solution/dong-tai-gui-hua-shen-ru-fen-xi-by-wang-yan-19/[动态规划深入分析 - 最佳买卖股票时机含冷冻期 - 力扣(LeetCode)]
8787

88-
Say you have an array for which the _i<span style="font-size: 10.8333px;">-_<span style="font-size: 10.8333px;">th element is the price of a given stock on day _i_.
88+
Say you have an array for which the _i -_ th element is the price of a given stock on day _i_.
8989

9090
Design an algorithm to find the maximum profit. You may complete at most *k* transactions.
9191

docs/0190-reverse-bits.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Reverse bits of a given 32 bits unsigned integer.
1414
----
1515
*Input:* 00000010100101000001111010011100
1616
*Output:* 00111001011110000010100101000000
17-
*Explanation: *The input binary string *00000010100101000001111010011100* represents the unsigned integer 43261596, so return 964176192 which its binary representation is *00111001011110000010100101000000*.
17+
*Explanation:* The input binary string *00000010100101000001111010011100* represents the unsigned integer 43261596, so return 964176192 which its binary representation is *00111001011110000010100101000000*.
1818
1919
----
2020

@@ -24,7 +24,7 @@ Reverse bits of a given 32 bits unsigned integer.
2424
----
2525
*Input:* 11111111111111111111111111111101
2626
*Output:* 10111111111111111111111111111111
27-
*Explanation: *The input binary string *11111111111111111111111111111101* represents the unsigned integer 4294967293, so return 3221225471 which its binary representation is *10111111111111111111111111111111*.
27+
*Explanation:* The input binary string *11111111111111111111111111111101* represents the unsigned integer 4294967293, so return 3221225471 which its binary representation is *10111111111111111111111111111111*.
2828
----
2929

3030

docs/0191-number-of-1-bits.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Write a function that takes an unsigned integer and return the number of '1' bit
1616
----
1717
*Input:* 00000000000000000000000000001011
1818
*Output:* 3
19-
*Explanation: *The input binary string `*00000000000000000000000000001011* has a total of three '1' bits.`
19+
*Explanation:* The input binary string `*00000000000000000000000000001011* has a total of three '1' bits.`
2020
2121
----
2222

@@ -26,7 +26,7 @@ Write a function that takes an unsigned integer and return the number of '1' bit
2626
----
2727
*Input:* 00000000000000000000000010000000
2828
*Output:* 1
29-
*Explanation: *The input binary string *00000000000000000000000010000000* has a total of one '1' bit.
29+
*Explanation:* The input binary string *00000000000000000000000010000000* has a total of one '1' bit.
3030
3131
----
3232

@@ -36,7 +36,7 @@ Write a function that takes an unsigned integer and return the number of '1' bit
3636
----
3737
*Input:* 11111111111111111111111111111101
3838
*Output:* 31
39-
*Explanation: *The input binary string *11111111111111111111111111111101* has a total of thirty one '1' bits.
39+
*Explanation:* The input binary string *11111111111111111111111111111101* has a total of thirty one '1' bits.
4040
----
4141

4242

docs/0200-number-of-islands.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ Given a 2d grid map of `'1'`s (land) and `'0'`s (water), count the number of isl
3333
00100
3434
00011
3535
36-
*Output: *3
36+
*Output:* 3
3737
----

docs/0207-course-schedule.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Given the total number of courses and a list of prerequisite *pairs*, is it poss
2626
[subs="verbatim,quotes"]
2727
----
2828
*Input:* 2, [[1,0]]
29-
*Output: *true
29+
*Output:* true
3030
*Explanation:* There are a total of 2 courses to take.
3131
To take course 1 you should have finished course 0. So it is possible.
3232
----
@@ -36,7 +36,7 @@ Given the total number of courses and a list of prerequisite *pairs*, is it poss
3636
[subs="verbatim,quotes"]
3737
----
3838
*Input:* 2, [[1,0],[0,1]]
39-
*Output: *false
39+
*Output:* false
4040
*Explanation:* There are a total of 2 courses to take.
4141
To take course 1 you should have finished course 0, and to take course 0 you should
4242
also have finished course 1. So it is impossible.

docs/0209-minimum-size-subarray-sum.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Given an array of *n* positive integers and a positive integer *s*, find the min
1010
----
1111
*Input:* `s = 7, nums = [2,3,1,2,4,3]`
1212
*Output:* 2
13-
*Explanation: *the subarray `[4,3]` has the minimal length under the problem constraint.
13+
*Explanation:* The subarray `[4,3]` has the minimal length under the problem constraint.
1414
----
1515

1616
<div class="spoilers">*Follow up:*

0 commit comments

Comments
 (0)