This commit is contained in:
krahets
2026-04-04 23:10:58 +08:00
parent 5b59dbded2
commit fec71ace08
168 changed files with 308 additions and 963 deletions
@@ -1748,7 +1748,7 @@
<span class="md-ellipsis">
Chapter 6. Hash Table
Chapter 6. Hashing
@@ -1770,7 +1770,7 @@
<span class="md-nav__icon md-icon"></span>
Chapter 6. Hash Table
Chapter 6. Hashing
</label>
@@ -5253,8 +5253,8 @@
<p>Let the input data size be <span class="arithmatex">\(n\)</span>. The following figure shows common types of space complexity (arranged from low to high).</p>
<div class="arithmatex">\[
\begin{aligned}
O(1) &lt; O(\log n) &lt; O(n) &lt; O(n^2) &lt; O(2^n) \newline
\text{Constant} &lt; \text{Logarithmic} &lt; \text{Linear} &lt; \text{Quadratic} &lt; \text{Exponential}
&amp; O(1) &lt; O(\log n) &lt; O(n) &lt; O(n^2) &lt; O(2^n) \newline
&amp; \text{Constant} &lt; \text{Logarithmic} &lt; \text{Linear} &lt; \text{Quadratic} &lt; \text{Exponential}
\end{aligned}
\]</div>
<p><img alt="Common types of space complexity" class="animation-figure" src="../space_complexity.assets/space_complexity_common_types.png" /></p>