mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-24 02:21:30 +08:00
Update punctuation
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
1. 计算搜索区间 $[i, j]$ 的中点 $m$ ,根据它排除一半搜索区间。
|
||||
2. 递归求解规模减小一半的子问题,可能为 $f(i, m-1)$ 或 $f(m+1, j)$ 。
|
||||
3. 循环第 `1.` , `2.` 步,直至找到 `target` 或区间为空时返回。
|
||||
3. 循环第 `1.` 和 `2.` 步,直至找到 `target` 或区间为空时返回。
|
||||
|
||||
下图展示了在数组中二分查找元素 $6$ 的分治过程。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user