mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-17 14:10:57 +00:00
build
This commit is contained in:
@@ -15,7 +15,7 @@ comments: true
|
||||
|
||||
## 11.6.1 算法流程
|
||||
|
||||
如图 11-11 所示,“划分阶段”从顶至底递归地将数组从中点切为两个子数组。
|
||||
如图 11-11 所示,“划分阶段”从顶至底递归地将数组从中点切分为两个子数组。
|
||||
|
||||
1. 计算数组中点 `mid` ,递归划分左子数组(区间 `[left, mid]` )和右子数组(区间 `[mid + 1, right]` )。
|
||||
2. 递归执行步骤 `1.` ,直至子数组区间长度为 1 时,终止递归划分。
|
||||
|
||||
Reference in New Issue
Block a user