Skip to content

Commit 80dcc36

Browse files
committed
fix: update images path
1 parent 95d4c9c commit 80dcc36

File tree

34 files changed

+42
-112
lines changed

34 files changed

+42
-112
lines changed

solution/0700-0799/0787.Cheapest Flights Within K Stops/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ src = 0, dst = 2, k = 1
1818
<strong>输出:</strong> 200
1919
<strong>解释:</strong>
2020
城市航班图如下
21-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/02/16/995.png" style="height: 180px; width: 246px;">
2221

2322
从城市 0 到城市 2 在 1 站中转以内的最便宜价格是 200,如图中红色所示。</pre>
2423

24+
![](./images/995.png)
25+
2526
<p><strong>示例 2:</strong></p>
2627

2728
<pre><strong>输入:</strong>
@@ -30,10 +31,11 @@ src = 0, dst = 2, k = 0
3031
<strong>输出:</strong> 500
3132
<strong>解释:</strong>
3233
城市航班图如下
33-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/02/16/995.png" style="height: 180px; width: 246px;">
3434

3535
从城市 0 到城市 2 在 0 站中转以内的最便宜价格是 500,如图中蓝色所示。</pre>
3636

37+
![](./images/995.png)
38+
3739
<p>&nbsp;</p>
3840

3941
<p><strong>提示:</strong></p>

solution/0700-0799/0787.Cheapest Flights Within K Stops/README_EN.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ src = 0, dst = 2, k = 1
1515
<strong>Output:</strong> 200
1616
<strong>Explanation:</strong>
1717
The graph looks like this:
18-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/02/16/995.png" style="height:180px; width:246px" />
1918

2019
The cheapest price from city <code>0</code> to city <code>2</code> with at most 1 stop costs 200, as marked red in the picture.</pre>
2120

21+
![](./images/995.png)
22+
2223
<pre>
2324
<strong>Example 2:</strong>
2425
<strong>Input:</strong>
@@ -27,10 +28,11 @@ src = 0, dst = 2, k = 0
2728
<strong>Output:</strong> 500
2829
<strong>Explanation:</strong>
2930
The graph looks like this:
30-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/02/16/995.png" style="height:180px; width:246px" />
3131

3232
The cheapest price from city <code>0</code> to city <code>2</code> with at most 0 stop costs 500, as marked blue in the picture.</pre>
3333

34+
![](./images/995.png)
35+
3436
<p><strong>Note:</strong></p>
3537

3638
<ul>

solution/0700-0799/0799.Champagne Tower/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<p>例如,在倾倒一杯香槟后,最顶层的玻璃杯满了。倾倒了两杯香槟后,第二层的两个玻璃杯各自盛放一半的香槟。在倒三杯香槟后,第二层的香槟满了 - 此时总共有三个满的玻璃杯。在倒第四杯后,第三层中间的玻璃杯盛放了一半的香槟,他两边的玻璃杯各自盛放了四分之一的香槟,如下图所示。</p>
1212

13-
<p><img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/03/09/tower.png" style="height:200px; width:290px" /></p>
13+
![](./images/tower.png)
1414

1515
<p>现在当倾倒了非负整数杯香槟后,返回第 i 行 j 个玻璃杯所盛放的香槟占玻璃杯容积的比例(i 和 j都从0开始)。</p>
1616

solution/0700-0799/0799.Champagne Tower/README_EN.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313

1414
<p>For example, after one cup of champagne is poured, the top most glass is full.&nbsp; After two cups of champagne are poured, the two glasses on the second row are half full.&nbsp; After three cups of champagne are poured, those two cups become full - there are 3 full glasses total now.&nbsp; After four cups of champagne are poured, the third row has the middle glass half full, and the two outside glasses are a quarter full, as pictured below.</p>
1515

16-
17-
18-
<p><img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/03/09/tower.png" style="height:200px; width:290px" /></p>
19-
20-
16+
![](./images/tower.png)
2117

2218
<p>Now after pouring some non-negative integer cups of champagne, return how full the j-th glass in the i-th row is (both i and j are 0 indexed.)</p>
2319

@@ -60,11 +56,8 @@
6056

6157

6258
<ul>
63-
6459
<li><code>poured</code>&nbsp;will&nbsp;be&nbsp;in the range of <code>[0, 10 ^ 9]</code>.</li>
65-
6660
<li><code>query_glass</code> and <code>query_row</code> will be in the range of <code>[0, 99]</code>.</li>
67-
6861
</ul>
6962

7063

Loading

solution/0800-0899/0802.Find Eventual Safe States/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
</pre>
2222

23-
<p><img alt="Illustration of graph" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/03/17/picture1.png" style="height:86px; width:300px" /></p>
23+
![](./images/picture1.png)
2424

2525
<p><strong>提示:</strong></p>
2626

solution/0800-0899/0802.Find Eventual Safe States/README_EN.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Here is a diagram of the above graph.
3434
</pre>
3535

3636

37-
38-
<p><img alt="Illustration of graph" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/03/17/picture1.png" style="height:86px; width:300px" /></p>
37+
![](./images/picture1.png)
3938

4039

4140

@@ -44,13 +43,9 @@ Here is a diagram of the above graph.
4443

4544

4645
<ul>
47-
4846
<li><code>graph</code> will have length at most <code>10000</code>.</li>
49-
5047
<li>The number of edges in the graph will not exceed <code>32000</code>.</li>
51-
5248
<li>Each <code>graph[i]</code> will be a sorted list of different integers, chosen within the range <code>[0, graph.length - 1]</code>.</li>
53-
5449
</ul>
5550

5651

Loading

solution/0800-0899/0812.Largest Triangle Area/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
这五个点如下图所示。组成的橙色三角形是最大的,面积为2。
1515
</pre>
1616

17-
<p><img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/04/1027.png" style="height:328px; width:400px" /></p>
17+
![](./images/1027.png)
1818

1919
<p><strong>注意: </strong></p>
2020

solution/0800-0899/0812.Largest Triangle Area/README_EN.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,18 @@ The five points are show in the figure below. The red triangle is the largest.
2121

2222
</pre>
2323

24-
25-
26-
<p><img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/04/1027.png" style="height:328px; width:400px" /></p>
27-
24+
![](./images/1027.png)
2825

2926

3027
<p><strong>Notes: </strong></p>
3128

3229

3330

3431
<ul>
35-
3632
<li><code>3 &lt;= points.length &lt;= 50</code>.</li>
37-
3833
<li>No points will be duplicated.</li>
39-
4034
<li>&nbsp;<code>-50 &lt;= points[i][j] &lt;= 50</code>.</li>
41-
4235
<li>Answers within&nbsp;<code>10^-6</code>&nbsp;of the true value will be accepted as correct.</li>
43-
4436
</ul>
4537

4638

Loading

solution/0800-0899/0814.Binary Tree Pruning/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,28 @@
1818
<strong>解释:</strong>
1919
只有红色节点满足条件&ldquo;所有不包含 1 的子树&rdquo;
2020
右图为返回的答案。
21-
22-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/06/1028_2.png" style="width:450px" />
2321
</pre>
2422

23+
![](./images/1028_2.png)
24+
2525
<pre>
2626
<strong>示例2:</strong>
2727
<strong>输入:</strong> [1,0,1,0,0,0,1]
2828
<strong>输出: </strong>[1,null,1,null,1]
2929

30-
31-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/06/1028_1.png" style="width:450px" />
3230
</pre>
3331

32+
![](./images/1028_1.png)
33+
3434
<pre>
3535
<strong>示例3:</strong>
3636
<strong>输入:</strong> [1,1,0,1,1,0,1,0]
3737
<strong>输出: </strong>[1,1,0,1,1,null,1]
3838

39-
40-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/05/1028.png" style="width:450px" />
4139
</pre>
4240

41+
![](./images/1028.png)
42+
4343
<p><strong>说明: </strong></p>
4444

4545
<ul>

solution/0800-0899/0814.Binary Tree Pruning/README_EN.md

+3-22
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,9 @@ Only the red nodes satisfy the property &quot;every subtree not containing a 1&q
3131

3232
The diagram on the right represents the answer.
3333

34-
35-
36-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/06/1028_2.png" style="width:450px" />
37-
3834
</pre>
3935

40-
36+
![](./images/1028_2.png)
4137

4238
<pre>
4339

@@ -47,15 +43,9 @@ The diagram on the right represents the answer.
4743

4844
<strong>Output: </strong>[1,null,1,null,1]
4945

50-
51-
52-
53-
54-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/06/1028_1.png" style="width:450px" />
55-
5646
</pre>
5747

58-
48+
![](./images/1028_1.png)
5949

6050
<pre>
6151

@@ -65,26 +55,17 @@ The diagram on the right represents the answer.
6555

6656
<strong>Output: </strong>[1,1,0,1,1,null,1]
6757

68-
69-
70-
71-
72-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/05/1028.png" style="width:450px" />
73-
7458
</pre>
7559

76-
60+
![](./images/1028.png)
7761

7862
<p><strong>Note: </strong></p>
7963

8064

8165

8266
<ul>
83-
8467
<li>The binary tree&nbsp;will&nbsp;have&nbsp;at&nbsp;most <code>100 nodes</code>.</li>
85-
8668
<li>The value of each node will only be <code>0</code> or <code>1</code>.</li>
87-
8869
</ul>
8970

9071

Loading
Loading
Loading

solution/0800-0899/0850.Rectangle Area II/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<p>找出平面中所有矩形叠加覆盖后的总面积。 由于答案可能太大,<strong>请返回它对 10 ^ 9 + 7 取模的结果</strong>。</p>
1010

11-
<p><img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/06/06/rectangle_area_ii_pic.png" style="height: 360px; width: 480px;"></p>
11+
![](./images/rectangle_area_ii_pic.png)
1212

1313
<p><strong>示例 1:</strong></p>
1414

solution/0800-0899/0850.Rectangle Area II/README_EN.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
<p>Find the total area covered by all <code>rectangles</code> in the plane.&nbsp; Since the answer&nbsp;may be too large, <strong>return it modulo 10^9 + 7</strong>.</p>
1111

1212

13-
14-
<p><img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/06/06/rectangle_area_ii_pic.png" style="width: 480px; height: 360px;" /></p>
15-
16-
13+
![](./images/rectangle_area_ii_pic.png)
1714

1815
<p><strong>Example 1:</strong></p>
1916

@@ -52,15 +49,10 @@
5249

5350

5451
<ul>
55-
5652
<li><code>1 &lt;= rectangles.length &lt;= 200</code></li>
57-
5853
<li><code><font face="monospace">rectanges[i].length = 4</font></code></li>
59-
6054
<li><code>0 &lt;= rectangles[i][j] &lt;= 10^9</code></li>
61-
6255
<li>The total area covered by all rectangles will never exceed&nbsp;<code>2^63 - 1</code>&nbsp;and thus will fit in a 64-bit signed integer.</li>
63-
6456
</ul>
6557

6658

Loading

solution/0800-0899/0863.All Nodes Distance K in Binary Tree/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
所求结点为与目标结点(值为 5)距离为 2 的结点,
2424
值分别为 7,4,以及 1
2525

26-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/06/28/sketch0.png" style="height: 240px; width: 280px;">
2726

2827
注意,输入的 &quot;root&quot;&quot;target&quot; 实际上是树上的结点。
2928
上面的输入仅仅是对这些对象进行了序列化描述。
3029
</pre>
3130

31+
![](./images/sketch0.png)
32+
3233
<p>&nbsp;</p>
3334

3435
<p><strong>提示:</strong></p>

solution/0800-0899/0863.All Nodes Distance K in Binary Tree/README_EN.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,13 @@ have values 7, 4, and 1.
4545

4646

4747

48-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/06/28/sketch0.png" style="width: 280px; height: 240px;" />
49-
50-
51-
5248
Note that the inputs &quot;root&quot; and &quot;target&quot; are actually TreeNodes.
5349

5450
The descriptions of the inputs above are just serializations of these objects.
5551

5652
</pre>
5753

58-
54+
![](./images/sketch0.png)
5955

6056
<p>&nbsp;</p>
6157

@@ -66,22 +62,15 @@ The descriptions of the inputs above are just serializations of these objects.
6662

6763

6864
<ol>
69-
7065
<li>The given tree is non-empty.</li>
71-
7266
<li>Each node in the tree has unique values&nbsp;<code>0 &lt;= node.val &lt;= 500</code>.</li>
73-
7467
<li>The <code>target</code>&nbsp;node is a node in the tree.</li>
75-
7668
<li><code>0 &lt;= K &lt;= 1000</code>.</li>
77-
7869
</ol>
7970

8071
</div>
8172

8273

83-
84-
8574
## Solutions
8675

8776

Loading

solution/0800-0899/0865.Smallest Subtree with all the Deepest Nodes/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616

1717
<p><strong>示例:</strong></p>
1818

19+
20+
![](./images/sketch1.png)
21+
22+
1923
<pre><strong>输入:</strong>[3,5,1,6,2,0,8,null,null,7,4]
2024
<strong>输出:</strong>[2,7,4]
2125
<strong>解释:</strong>
22-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/07/01/sketch1.png" style="height: 238px; width: 280px;">
26+
2327
我们返回值为 2 的结点,在图中用黄色标记。
2428
在图中用蓝色标记的是树的最深的结点。
2529
输入 &quot;[3, 5, 1, 6, 2, 0, 8, null, null, 7, 4]&quot; 是对给定的树的序列化表述。

solution/0800-0899/0865.Smallest Subtree with all the Deepest Nodes/README_EN.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<p><strong>Example 1:</strong></p>
2727

28-
28+
![](./images/sketch1.png)
2929

3030
<pre>
3131

@@ -37,8 +37,6 @@
3737

3838
</strong>
3939

40-
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/07/01/sketch1.png" style="width: 280px; height: 238px;" />
41-
4240

4341

4442
We return the node with value 2, colored in yellow in the diagram.
@@ -64,11 +62,8 @@ Both the input and output have TreeNode type.
6462

6563

6664
<ul>
67-
6865
<li>The number of nodes in the tree will be between 1 and 500.</li>
69-
7066
<li>The values of each node are unique.</li>
71-
7267
</ul>
7368

7469

Loading

solution/0800-0899/0872.Leaf-Similar Trees/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!-- 这里写题目描述 -->
77
<p>请考虑一颗二叉树上所有的叶子,这些叶子的值按从左到右的顺序排列形成一个&nbsp;<em>叶值序列</em> 。</p>
88

9-
<p><img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/07/16/tree.png" style="height: 240px; width: 300px;"></p>
9+
![](./images/tree.png)
1010

1111
<p>举个例子,如上图所示,给定一颗叶值序列为&nbsp;<code>(6, 7, 4, 9, 8)</code>&nbsp;的树。</p>
1212

0 commit comments

Comments
 (0)