Skip to content

Commit bb71790

Browse files
committed
fix: update images path
1 parent 901524a commit bb71790

File tree

51 files changed

+560
-377
lines changed

Some content is hidden

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

51 files changed

+560
-377
lines changed

solution/1300-1399/1386.Cinema Seat Allocation/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
## 题目描述
66

77
<!-- 这里写题目描述 -->
8-
<p><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/03/21/cinema_seats_1.png" style="height: 149px; width: 400px;"></p>
8+
9+
![](./images/cinema_seats_1.png)
910

1011
<p>如上图所示,电影院的观影厅中有 <code>n</code>&nbsp;行座位,行编号从 1&nbsp;到 <code>n</code>&nbsp;,且每一行内总共有 10 个座位,列编号从 1 到 10 。</p>
1112

@@ -17,7 +18,7 @@
1718

1819
<p><strong>示例 1:</strong></p>
1920

20-
<p><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/03/21/cinema_seats_3.png" style="height: 96px; width: 400px;"></p>
21+
![](./images/cinema_seats_3.png)
2122

2223
<pre><strong>输入:</strong>n = 3, reservedSeats = [[1,2],[1,3],[1,8],[2,6],[3,1],[3,10]]
2324
<strong>输出:</strong>4

solution/1300-1399/1386.Cinema Seat Allocation/README_EN.md

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

55
## Description
66

7-
<p><img alt="" src="https://assets.leetcode.com/uploads/2020/02/14/cinema_seats_1.png" style="width: 400px; height: 149px;" /></p>
7+
![](./images/cinema_seats_1.png)
88

99
<p>A cinema&nbsp;has <code>n</code>&nbsp;rows of seats, numbered from 1 to <code>n</code>&nbsp;and there are ten&nbsp;seats in each row, labelled from 1&nbsp;to 10&nbsp;as shown in the figure above.</p>
1010

@@ -15,7 +15,7 @@
1515
<p>&nbsp;</p>
1616
<p><strong>Example 1:</strong></p>
1717

18-
<p><img alt="" src="https://assets.leetcode.com/uploads/2020/02/14/cinema_seats_3.png" style="width: 400px; height: 96px;" /></p>
18+
![](./images/cinema_seats_3.png)
1919

2020
<pre>
2121
<strong>Input:</strong> n = 3, reservedSeats = [[1,2],[1,3],[1,8],[2,6],[3,1],[3,10]]
Loading
Loading

solution/1300-1399/1388.Pizza With 3n Slices/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<p><strong>示例 1:</strong></p>
2424

25-
<p><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/03/21/sample_3_1723.png" style="height: 240px; width: 475px;"></p>
25+
![](./images/sample_3_1723.png)
2626

2727
<pre><strong>输入:</strong>slices = [1,2,3,4,5,6]
2828
<strong>输出:</strong>10
@@ -31,7 +31,7 @@
3131

3232
<p><strong>示例 2:</strong></p>
3333

34-
<p><strong><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/03/21/sample_4_1723.png" style="height: 250px; width: 475px;"></strong></p>
34+
![](./images/sample_4_1723.png)
3535

3636
<pre><strong>输入:</strong>slices = [8,9,8,6,1,1]
3737
<strong>输出:</strong>16
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,136 @@
1-
# [1388. Pizza With 3n Slices](https://leetcode.com/problems/pizza-with-3n-slices)
2-
3-
[中文文档](/solution/1300-1399/1388.Pizza%20With%203n%20Slices/README.md)
4-
5-
## Description
6-
7-
<p>There is a pizza with 3n slices of varying size, you and your friends will take slices of pizza as follows:</p>
8-
9-
<ul>
10-
<li>You will pick <strong>any</strong> pizza slice.</li>
11-
<li>Your friend Alice&nbsp;will pick&nbsp;next slice in anti clockwise direction of your pick.&nbsp;</li>
12-
<li>Your friend Bob&nbsp;will&nbsp;pick&nbsp;next slice in clockwise direction of your pick.</li>
13-
<li>Repeat&nbsp;until&nbsp;there are no more slices of pizzas.</li>
14-
</ul>
15-
16-
<p>Sizes of Pizza slices is represented by circular array <code>slices</code> in clockwise direction.</p>
17-
18-
<p>Return the maximum possible sum of slice sizes which you can have.</p>
19-
20-
<p>&nbsp;</p>
21-
<p><strong>Example 1:</strong></p>
22-
23-
<p><img alt="" src="https://assets.leetcode.com/uploads/2020/02/18/sample_3_1723.png" style="width: 475px; height: 240px;" /></p>
24-
25-
<pre>
26-
<strong>Input:</strong> slices = [1,2,3,4,5,6]
27-
<strong>Output:</strong> 10
28-
<strong>Explanation:</strong> Pick pizza slice of size 4, Alice and Bob will pick slices with size 3 and 5 respectively. Then Pick slices with size 6, finally Alice and Bob will pick slice of size 2 and 1 respectively. Total = 4 + 6.
29-
</pre>
30-
31-
<p><strong>Example 2:</strong></p>
32-
33-
<p><strong><img alt="" src="https://assets.leetcode.com/uploads/2020/02/18/sample_4_1723.png" style="width: 475px; height: 250px;" /></strong></p>
34-
35-
<pre>
36-
<strong>Input:</strong> slices = [8,9,8,6,1,1]
37-
<strong>Output:</strong> 16
38-
<strong>Output:</strong> Pick pizza slice of size 8 in each turn. If you pick slice with size 9 your partners will pick slices of size 8.
39-
</pre>
40-
41-
<p><strong>Example 3:</strong></p>
42-
43-
<pre>
44-
<strong>Input:</strong> slices = [4,1,2,5,8,3,1,9,7]
45-
<strong>Output:</strong> 21
46-
</pre>
47-
48-
<p><strong>Example 4:</strong></p>
49-
50-
<pre>
51-
<strong>Input:</strong> slices = [3,1,2]
52-
<strong>Output:</strong> 3
53-
</pre>
54-
55-
<p>&nbsp;</p>
56-
<p><strong>Constraints:</strong></p>
57-
58-
<ul>
59-
<li><code>1 &lt;= slices.length &lt;= 500</code></li>
60-
<li><code>slices.length % 3 == 0</code></li>
61-
<li><code>1 &lt;= slices[i] &lt;= 1000</code></li>
62-
</ul>
63-
64-
## Solutions
65-
66-
67-
68-
<!-- tabs:start -->
69-
70-
### **Python3**
71-
72-
73-
```python
74-
75-
```
76-
77-
### **Java**
78-
79-
80-
```java
81-
82-
```
83-
84-
### **...**
85-
```
86-
87-
```
88-
1+
# [1388. Pizza With 3n Slices](https://leetcode.com/problems/pizza-with-3n-slices)
2+
3+
[中文文档](/solution/1300-1399/1388.Pizza%20With%203n%20Slices/README.md)
4+
5+
## Description
6+
7+
<p>There is a pizza with 3n slices of varying size, you and your friends will take slices of pizza as follows:</p>
8+
9+
10+
11+
<ul>
12+
13+
<li>You will pick <strong>any</strong> pizza slice.</li>
14+
15+
<li>Your friend Alice&nbsp;will pick&nbsp;next slice in anti clockwise direction of your pick.&nbsp;</li>
16+
17+
<li>Your friend Bob&nbsp;will&nbsp;pick&nbsp;next slice in clockwise direction of your pick.</li>
18+
19+
<li>Repeat&nbsp;until&nbsp;there are no more slices of pizzas.</li>
20+
21+
</ul>
22+
23+
24+
25+
<p>Sizes of Pizza slices is represented by circular array <code>slices</code> in clockwise direction.</p>
26+
27+
28+
29+
<p>Return the maximum possible sum of slice sizes which you can have.</p>
30+
31+
32+
33+
<p>&nbsp;</p>
34+
35+
<p><strong>Example 1:</strong></p>
36+
37+
38+
![](./images/sample_3_1723.png)
39+
40+
<pre>
41+
42+
<strong>Input:</strong> slices = [1,2,3,4,5,6]
43+
44+
<strong>Output:</strong> 10
45+
46+
<strong>Explanation:</strong> Pick pizza slice of size 4, Alice and Bob will pick slices with size 3 and 5 respectively. Then Pick slices with size 6, finally Alice and Bob will pick slice of size 2 and 1 respectively. Total = 4 + 6.
47+
48+
</pre>
49+
50+
51+
52+
<p><strong>Example 2:</strong></p>
53+
54+
55+
![](./images/sample_4_1723.png)
56+
57+
58+
59+
<pre>
60+
61+
<strong>Input:</strong> slices = [8,9,8,6,1,1]
62+
63+
<strong>Output:</strong> 16
64+
65+
<strong>Output:</strong> Pick pizza slice of size 8 in each turn. If you pick slice with size 9 your partners will pick slices of size 8.
66+
67+
</pre>
68+
69+
70+
71+
<p><strong>Example 3:</strong></p>
72+
73+
74+
75+
<pre>
76+
77+
<strong>Input:</strong> slices = [4,1,2,5,8,3,1,9,7]
78+
79+
<strong>Output:</strong> 21
80+
81+
</pre>
82+
83+
84+
85+
<p><strong>Example 4:</strong></p>
86+
87+
88+
89+
<pre>
90+
91+
<strong>Input:</strong> slices = [3,1,2]
92+
93+
<strong>Output:</strong> 3
94+
95+
</pre>
96+
97+
98+
99+
<p>&nbsp;</p>
100+
101+
<p><strong>Constraints:</strong></p>
102+
103+
104+
105+
<ul>
106+
<li><code>1 &lt;= slices.length &lt;= 500</code></li>
107+
<li><code>slices.length % 3 == 0</code></li>
108+
<li><code>1 &lt;= slices[i] &lt;= 1000</code></li>
109+
</ul>
110+
111+
## Solutions
112+
113+
114+
115+
<!-- tabs:start -->
116+
117+
### **Python3**
118+
119+
120+
```python
121+
122+
```
123+
124+
### **Java**
125+
126+
127+
```java
128+
129+
```
130+
131+
### **...**
132+
```
133+
134+
```
135+
89136
<!-- tabs:end -->
Loading
Loading

solution/1300-1399/1391.Check if There is a Valid Path in a Grid/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<li><strong>6</strong> 表示连接右单元格和上单元格的街道。</li>
1717
</ul>
1818

19-
<p><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/03/21/main.png" style="height: 708px; width: 450px;"></p>
19+
![](./images/main.png)
2020

2121
<p>你最开始从左上角的单元格 <code>(0,0)</code> 开始出发,网格中的「有效路径」是指从左上方的单元格 <code>(0,0)</code> 开始、一直到右下方的 <code>(m-1,n-1)</code> 结束的路径。<strong>该路径必须只沿着街道走</strong>。</p>
2222

@@ -28,7 +28,7 @@
2828

2929
<p><strong>示例 1:</strong></p>
3030

31-
<p><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/03/21/e1.png" style="height: 311px; width: 455px;"></p>
31+
![](./images/e1.png)
3232

3333
<pre><strong>输入:</strong>grid = [[2,4,3],[6,5,2]]
3434
<strong>输出:</strong>true
@@ -37,7 +37,7 @@
3737

3838
<p><strong>示例 2:</strong></p>
3939

40-
<p><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/03/21/e2.png" style="height: 293px; width: 455px;"></p>
40+
![](./images/e2.png)
4141

4242
<pre><strong>输入:</strong>grid = [[1,2,1],[1,2,1]]
4343
<strong>输出:</strong>false

solution/1300-1399/1391.Check if There is a Valid Path in a Grid/README_EN.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Given a <em>m</em> x <em>n</em> <code>grid</code>. Each cell of the <code>grid</
1414
<li><b>6</b> which means a street connecting the right cell and the upper cell.</li>
1515
</ul>
1616

17-
<p><img alt="" src="https://assets.leetcode.com/uploads/2020/03/05/main.png" style="width: 450px; height: 708px;" /></p>
17+
![](./images/main.png)
1818

1919
<p>You will initially start at the street of the&nbsp;upper-left cell <code>(0,0)</code>. A valid path in the grid is a path which starts from the upper left&nbsp;cell <code>(0,0)</code> and ends at the bottom-right&nbsp;cell <code>(m - 1, n - 1)</code>. <strong>The path should only follow the streets</strong>.</p>
2020

@@ -24,15 +24,19 @@ Given a <em>m</em> x <em>n</em> <code>grid</code>. Each cell of the <code>grid</
2424

2525
<p>&nbsp;</p>
2626
<p><strong>Example 1:</strong></p>
27-
<img alt="" src="https://assets.leetcode.com/uploads/2020/03/05/e1.png" style="width: 455px; height: 311px;" />
27+
28+
![](./images/e1.png)
29+
2830
<pre>
2931
<strong>Input:</strong> grid = [[2,4,3],[6,5,2]]
3032
<strong>Output:</strong> true
3133
<strong>Explanation:</strong> As shown you can start at cell (0, 0) and visit all the cells of the grid to reach (m - 1, n - 1).
3234
</pre>
3335

3436
<p><strong>Example 2:</strong></p>
35-
<img alt="" src="https://assets.leetcode.com/uploads/2020/03/05/e2.png" style="width: 455px; height: 293px;" />
37+
38+
![](./images/e2.png)
39+
3640
<pre>
3741
<strong>Input:</strong> grid = [[1,2,1],[1,2,1]]
3842
<strong>Output:</strong> false
Loading
Loading
Loading

solution/1400-1499/1401.Circle and Rectangle Overlapping/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<p><strong>示例 1:</strong></p>
1717

18-
<p><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/04/04/sample_4_1728.png" style="height: 167px; width: 258px;"></p>
18+
![](./images/sample_4_1728.png)
1919

2020
<pre><strong>输入:</strong>radius = 1, x_center = 0, y_center = 0, x1 = 1, y1 = -1, x2 = 3, y2 = 1
2121
<strong>输出:</strong>true
@@ -24,15 +24,15 @@
2424

2525
<p><strong>示例 2:</strong></p>
2626

27-
<p><strong><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/04/04/sample_2_1728.png" style="height: 135px; width: 150px;"></strong></p>
27+
![](./images/sample_2_1728.png)
2828

2929
<pre><strong>输入:</strong>radius = 1, x_center = 0, y_center = 0, x1 = -1, y1 = 0, x2 = 0, y2 = 1
3030
<strong>输出:</strong>true
3131
</pre>
3232

3333
<p><strong>示例 3:</strong></p>
3434

35-
<p><strong><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/04/04/sample_6_1728.png" style="height: 165px; width: 175px;"></strong></p>
35+
![](./images/sample_6_1728.png)
3636

3737
<pre><strong>输入:</strong>radius = 1, x_center = 1, y_center = 1, x1 = -3, y1 = -3, x2 = 3, y2 = 3
3838
<strong>输出:</strong>true

solution/1400-1499/1401.Circle and Rectangle Overlapping/README_EN.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<p>&nbsp;</p>
1414
<p><strong>Example 1:</strong></p>
1515

16-
<p><img alt="" src="https://assets.leetcode.com/uploads/2020/02/20/sample_4_1728.png" style="width: 258px; height: 167px;" /></p>
16+
![](./images/sample_4_1728.png)
1717

1818
<pre>
1919
<strong>Input:</strong> radius = 1, x_center = 0, y_center = 0, x1 = 1, y1 = -1, x2 = 3, y2 = 1
@@ -23,7 +23,7 @@
2323

2424
<p><strong>Example 2:</strong></p>
2525

26-
<p><strong><img alt="" src="https://assets.leetcode.com/uploads/2020/02/20/sample_2_1728.png" style="width: 150px; height: 135px;" /></strong></p>
26+
![](./images/sample_2_1728.png)
2727

2828
<pre>
2929
<strong>Input:</strong> radius = 1, x_center = 0, y_center = 0, x1 = -1, y1 = 0, x2 = 0, y2 = 1
@@ -32,7 +32,7 @@
3232

3333
<p><strong>Example 3:</strong></p>
3434

35-
<p><strong><img alt="" src="https://assets.leetcode.com/uploads/2020/03/03/sample_6_1728.png" style="width: 175px; height: 165px;" /></strong></p>
35+
![](./images/sample_6_1728.png)
3636

3737
<pre>
3838
<strong>Input:</strong> radius = 1, x_center = 1, y_center = 1, x1 = -3, y1 = -3, x2 = 3, y2 = 3
Loading
Loading
Loading

0 commit comments

Comments
 (0)