<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>哈希表 on Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/%E5%93%88%E5%B8%8C%E8%A1%A8/</link><description>Recent content in 哈希表 on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sun, 01 May 2022 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/%E5%93%88%E5%B8%8C%E8%A1%A8/index.xml" rel="self" type="application/rss+xml"/><item><title>LeetCode（一）：哈希表</title><link>https://www.chenk.top/zh/leetcode/01-%E5%93%88%E5%B8%8C%E8%A1%A8/</link><pubDate>Sun, 01 May 2022 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/leetcode/01-%E5%93%88%E5%B8%8C%E8%A1%A8/</guid><description>&lt;p>哈希表是工具箱里的性价比之王：每个元素只占用常数级别的内存，却能把“这个值存在吗？”的查询开销降到接近一条 CPU 指令。很多暴力解法复杂度高达 &lt;span class="math-inline">$O(n^2)$&lt;/span>
，但只要用上哈希表，往往就能直接优化到 &lt;span class="math-inline">$O(n)$&lt;/span>
 的一次遍历。&lt;/p></description></item></channel></rss>