This commit is contained in:
krahets
2023-03-20 21:09:15 +08:00
parent a9ff8a9e91
commit 2c74c6e3f4
3 changed files with 29 additions and 11 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ comments: true
举个例子,给定数组 `[0, 0, 0, 0, 1]` ,如果先“从左向右查找”,哨兵划分后数组为 `[1, 0, 0, 0, 0]` ,这个结果是不对的。
深想一步,如果我们选择 `nums[right]` 为基准数,那么正好反过来,必须先“从左往右查找”。
再深想一步,如果我们选择 `nums[right]` 为基准数,那么正好反过来,必须先“从左往右查找”。
## 11.4.1.   算法流程