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