Skip to content

Commit 2c98380

Browse files
authored
Update 135._Candy.md
1 parent 8fb5124 commit 2c98380

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/Leetcode_Solutions/Python/135._Candy.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ class Solution:
9898

9999
假设:
100100
```
101-
input: [2, 4, 6, 8, 7, 6, 5, 4, 3, 2, 7, 8, 9, 8, 7, 6, 5, 4, 3]
102-
index: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,14,15,16,17,18,19]
101+
input: [2, 4, 6, 8, 7, 6, 5, 4, 3, 2, 7, 8, 9, 8, 7, 6, 5, 4, 3]
102+
child index: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,14,15,16,17,18,19]
103103
104104
```
105105

@@ -115,9 +115,9 @@ rating终于又变成升序了,这时候我们知道了,第5个孩子最少
115115
于是我们的candy的总和为
116116

117117
```
118-
input: [2, 4, 6, 8, 7, 6, 5, 4, 3, 2, 7, 8, 9, 8, 7, 6, 5, 4, 3]
119-
candy: [1, 2, 3, 7, 6, 5, 4, 3, 2, 1, 2, 3, 7, 6, 5, 4, 3, 2, 1]
120-
index: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,14,15,16,17,18,19]
118+
input: [2, 4, 6, 8, 7, 6, 5, 4, 3, 2, 7, 8, 9, 8, 7, 6, 5, 4, 3]
119+
child candy: [1, 2, 3, 7, 6, 5, 4, 3, 2, 1, 2, 3, 7, 6, 5, 4, 3, 2, 1]
120+
child index: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,14,15,16,17,18,19]
121121
122122
一共67颗candy
123123
```

0 commit comments

Comments
 (0)