Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3428111

Browse files
Update 768.max-chunks-to-make-sorted-ii.md
1 parent e9a5f87 commit 3428111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎problems/768.max-chunks-to-make-sorted-ii.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ arr[i]的大小在[0, 10**8]之间。
6868

6969
- 先排序 arr,不妨记排序后的 arr 为 sorted_arr
7070
- 从左到右遍历 arr,比如遍历到了索引为 i 的元素,其中 0 <= i < len(arr)
71-
- 如果 arr[:i+1] 的计数信息和 sorted_arr[:i+1] 的计数信息一致,那么说明可以分桶,否则不可以
71+
- 如果 arr[:i+1] 的计数信息和 sorted_arr[:i+1] 的计数信息一致,那么说明可以**贪心地**切分,否则一定不可以分割
7272

7373
> arr[:i+1] 指的是 arr 的切片,从索引 0 到 索引 i 的一个切片。
7474

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /