Skip to content

Commit ca1635c

Browse files
authored
Update 1262.greatest-sum-divisible-by-three.md
1 parent afc1994 commit ca1635c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

problems/1262.greatest-sum-divisible-by-three.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ https://leetcode-cn.com/problems/greatest-sum-divisible-by-three/description/
4444
## 公司
4545

4646
- 字节
47+
- 网易有道
4748

4849
### 思路
4950

@@ -249,3 +250,7 @@ class Solution:
249250
## 扩展
250251

251252
实际上,我们可以采取加法(贪婪策略),感兴趣的可以试一下。
253+
254+
另外如果题目改成了`请你找出并返回能被x整除的元素最大和`,你只需要将我的解法中的 3 改成 x 即可。
255+
256+

0 commit comments

Comments
 (0)