Movatterモバイル変換


[0]ホーム

URL:


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

Commitbc3f1f9

Browse files
committed
调整二分查找语句
1 parent3b5c3d5 commitbc3f1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎算法/二分查找.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
###:pencil2:查找思想
1515

16-
**二分查找针对的是一个有序的集合。它的查找算法有点类型分治的思想,就像上面所说的。每次我通过中间的数和指定的数进行比较,判断大小,缩小猜测的区间,最多到区间等于0的时候,结果也就是最终指定的答案。二分查找是一种高效的查找算法,它的时间复杂度是O(logn).**
16+
**二分查找针对的是一个有序的集合。它的查找算法有点类型分治的思想,就像上面所说的。每次我通过中间的数和指定的数进行比较,判断大小,缩小猜测的区间,直到压缩到区间为1个数时或者不存在的情况,结果也就出来了。二分查找是一种高效的查找算法,它的时间复杂度是O(Log n).**
1717

1818
****
1919

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp