<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>二分查找 on 蓝尾蜂鸟</title><link>https://clibing.com/tags/%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE/</link><description>Recent content in 二分查找 on 蓝尾蜂鸟</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><copyright>Copyright © 2011-2026 clibing. All Rights Reserved.</copyright><lastBuildDate>Mon, 09 Aug 2021 09:04:36 +0800</lastBuildDate><atom:link href="https://clibing.com/tags/%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE/index.xml" rel="self" type="application/rss+xml"/><item><title>Binary Search</title><link>https://clibing.com/posts/algorithm/binary-search/</link><pubDate>Mon, 09 Aug 2021 09:04:36 +0800</pubDate><guid>https://clibing.com/posts/algorithm/binary-search/</guid><description><![CDATA[<h3 id="二分查找" data-numberify>二分查找<a class="anchor ms-1" href="#二分查找"></a></h3>
<p>时间复杂度O(log n)</p>

<h3 id="解析" data-numberify>解析<a class="anchor ms-1" href="#解析"></a></h3>
<p>存在一个有序数组</p>
<ul>
<li>array = [1, 3, 6, 10, 13, 20, 21, 40, 50, 55]</li>
<li>len: 10</li>
</ul>
<p>需要查询的6的位置</p>]]></description></item></channel></rss>