Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit fc3d697

Browse files
aQuaaQua
aQua
authored and
aQua
committed
修改了细节
1 parent 7213651 commit fc3d697

File tree

18 files changed

+26
-26
lines changed

18 files changed

+26
-26
lines changed

Algorithms/0226.invert-binary-tree/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Invert a binary tree.
66

7-
```shell
7+
```text
88
4
99
/ \
1010
2 7
@@ -14,7 +14,7 @@ Invert a binary tree.
1414

1515
to
1616

17-
```shell
17+
```text
1818
4
1919
/ \
2020
7 2

Algorithms/0242.valid-anagram/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Given two strings s and t, write a function to determine if t is an anagram of s
66

77
For example,
88

9-
```shell
9+
```text
1010
s = "anagram", t = "nagaram", return true.
1111
s = "rat", t = "car", return false.
1212
```

Algorithms/0273.integer-to-english-words/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Convert a non-negative integer to its english words representation. Given input
66

77
For example,
88

9-
```shell
9+
```text
1010
123 -> "One Hundred Twenty Three"
1111
12345 -> "Twelve Thousand Three Hundred Forty Five"
1212
1234567 -> "One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven"

Algorithms/0282.expression-add-operators/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Given a string that contains only digits 0-9 and a target value, return all poss
66

77
Examples:
88

9-
```shell
9+
```text
1010
"123", 6 -> ["1+2+3", "1*2*3"]
1111
"232", 8 -> ["2*3+2", "2+3*2"]
1212
"105", 5 -> ["1*0+5","10-5"]

Algorithms/0295.find-median-from-data-stream/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Median is the middle value in an ordered integer list. If the size of the list i
66

77
Examples:
88

9-
```shell
9+
```text
1010
[2,3,4] , the median is 3
1111
[2,3], the median is (2 + 3) / 2 = 2.5
1212
```
@@ -18,7 +18,7 @@ Design a data structure that supports the following two operations:
1818

1919
For example:
2020

21-
```shell
21+
```text
2222
addNum(1)
2323
addNum(2)
2424
findMedian() -> 1.5

Algorithms/0299.bulls-and-cows/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You are playing the following Bulls and Cows game with your friend: You write do
66

77
For example:
88

9-
```shell
9+
```text
1010
Secret number: "1807"
1111
Friend's guess: "7810"
1212
```
@@ -17,7 +17,7 @@ Write a function to return a hint according to the secret number and friend's gu
1717

1818
Please note that both secret number and friend's guess may contain duplicate digits, for example:
1919

20-
```shell
20+
```text
2121
Secret number: "1123"
2222
Friend's guess: "0111"
2323
```

Algorithms/0301.remove-invalid-parentheses/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Note: The input string may contain letters other than the parentheses ( and ).
88

99
Examples:
1010

11-
```shell
11+
```text
1212
"()())()" -> ["()()()", "(())()"]
1313
"(a)())()" -> ["(a)()()", "(a())()"]
1414
")(" -> [""]

Algorithms/0303.range-sum-query-immutable/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Given an integer array nums, find the sum of the elements between indices i and
66

77
Example:
88

9-
```shell
9+
```text
1010
Given nums = [-2, 0, 3, -5, 2, -1]
1111
1212
sumRange(0, 2) -> 1

Algorithms/0304.range-sum-query-2d-immutable/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The above rectangle (with the red border) is defined by (row1, col1) = (2, 1) an
1010

1111
Example:
1212

13-
```shell
13+
```text
1414
Given matrix = [
1515
[3, 0, 1, 4, 2],
1616
[5, 6, 3, 2, 1],

Algorithms/0306.additive-number/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ For example:
1010

1111
"112358" is an additive number because the digits can form an additive sequence: 1, 1, 2, 3, 5, 8.
1212

13-
```shell
13+
```text
1414
1 + 1 = 2, 1 + 2 = 3, 2 + 3 = 5, 3 + 5 = 8
1515
```
1616

1717
"199100199" is also an additive number, the additive sequence is: 1, 99, 100, 199.
1818

19-
```shell
19+
```text
2020
1 + 99 = 100, 99 + 100 = 199
2121
```
2222

Algorithms/0307.range-sum-query-mutable/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The update(i, val) function modifies nums by updating the element at index i to
88

99
Example:
1010

11-
```shell
11+
```text
1212
Given nums = [1, 3, 5]
1313
1414
sumRange(0, 2) -> 9

Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Design an algorithm to find the maximum profit. You may complete as many transac
1212

1313
Example:
1414

15-
```shell
15+
```text
1616
prices = [1, 2, 3, 0, 2]
1717
maxProfit = 3
1818
transactions = [buy, sell, cooldown, buy, sell]

Algorithms/0310.minimum-height-trees/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can assume that no duplicate edges will appear in edges. Since all edges are
1414

1515
Example 1:
1616

17-
```shell
17+
```text
1818
Given n = 4, edges = [[1, 0], [1, 2], [1, 3]]
1919
2020
0
@@ -28,7 +28,7 @@ return [1]
2828

2929
Example 2:
3030

31-
```shell
31+
```text
3232
Given n = 6, edges = [[0, 3], [1, 3], [2, 3], [4, 3], [5, 4]]
3333
3434
0 1 2

Algorithms/0312.burst-balloons/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Note:
1313

1414
Example:
1515

16-
```shell
16+
```text
1717
Given [3, 1, 5, 8]
1818
1919
Return 167

Algorithms/0315.count-of-smaller-numbers-after-self/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The counts array has the property where counts[i] is the number of smaller eleme
77

88
Example:
99

10-
```shell
10+
```text
1111
Given nums = [5, 2, 6, 1]
1212
1313
To the right of 5 there are 2 smaller elements (2 and 1).

Algorithms/0318.maximum-product-of-word-lengths/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ If no such two words exist, return 0.
88

99
Example 1:
1010

11-
```shell
11+
```text
1212
Given ["abcw", "baz", "foo", "bar", "xtfn", "abcdef"]
1313
Return 16
1414
The two words can be "abcw", "xtfn".
1515
```
1616

1717
Example 2:
1818

19-
```shell
19+
```text
2020
Given ["a", "ab", "abc", "d", "cd", "bcd", "abcd"]
2121
Return 4
2222
The two words can be "ab", "cd".
2323
```
2424

2525
Example 3:
2626

27-
```shell
27+
```text
2828
Given ["a", "aa", "aaa", "aaaa"]
2929
Return 0
3030
No such pair of words.

Algorithms/0319.bulb-switcher/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Find how many bulbs are on after n rounds.
88

99
Example:
1010

11-
```shell
11+
```text
1212
Given n = 3.
1313
1414
At first, the three bulbs are [off, off, off].

Algorithms/0322.coin-change/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ You are given coins of different denominations and a total amount of money amoun
66

77
Example 1:
88

9-
```shell
9+
```text
1010
coins = [1, 2, 5], amount = 11
1111
return 3 (11 = 5 + 5 + 1)
1212
```
1313

1414
Example 2:
1515

16-
```shell
16+
```text
1717
coins = [2], amount = 3
1818
return -1.
1919
```

0 commit comments

Comments
 (0)