Skip to content

Commit 64347ad

Browse files
authored
Update Readme.md
1 parent df93126 commit 64347ad

File tree

1 file changed

+1
-0
lines changed
  • Greedy/1354.Construct-Target-Array-With-Multiple-Sums

1 file changed

+1
-0
lines changed

Greedy/1354.Construct-Target-Array-With-Multiple-Sums/Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ while (pq.top()!=1)
4141
pq.push(b);
4242
}
4343
```
44+
但是以上还有一个bug。那就是b在取余运算之后的结果可能是零。但是题目中要求的所有元素的初始状态是1。这说明我们不能把b降到0。也就是说,如果a能被other整除,我们就只能把b降到others。

0 commit comments

Comments
 (0)