This commit is contained in:
krahets
2026-04-02 03:08:50 +08:00
parent 09a136c9fa
commit aaf9f58eb3
157 changed files with 3002 additions and 2994 deletions
+35 -35
View File
@@ -6,7 +6,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="Data Structures and Algorithms Crash Course with Animated Illustrations and Off-the-Shelf Code">
<meta name="description" content="Data structures and algorithms tutorial with animated illustrations and ready-to-run code">
<meta name="author" content="krahets">
@@ -576,7 +576,7 @@
<span class="md-ellipsis">
Chapter 1. Encounter With Algorithms
Chapter 1. Encounter with Algorithms
@@ -598,7 +598,7 @@
<span class="md-nav__icon md-icon"></span>
Chapter 1. Encounter With Algorithms
Chapter 1. Encounter with Algorithms
</label>
@@ -1183,7 +1183,7 @@
<span class="md-ellipsis">
Chapter 4. Array and Linked List
Chapter 4. Arrays and Linked Lists
@@ -1205,7 +1205,7 @@
<span class="md-nav__icon md-icon"></span>
Chapter 4. Array and Linked List
Chapter 4. Arrays and Linked Lists
</label>
@@ -1311,7 +1311,7 @@
<span class="md-ellipsis">
4.4 Memory and Cache *
4.4 Random-Access Memory and Cache *
@@ -1402,7 +1402,7 @@
<span class="md-ellipsis">
Chapter 5. Stack and Queue
Chapter 5. Stacks and Queues
@@ -1424,7 +1424,7 @@
<span class="md-nav__icon md-icon"></span>
Chapter 5. Stack and Queue
Chapter 5. Stacks and Queues
</label>
@@ -1502,7 +1502,7 @@
<span class="md-ellipsis">
5.3 Double-Ended Queue
5.3 Deque
@@ -1593,7 +1593,7 @@
<span class="md-ellipsis">
Chapter 6. Hashing
Chapter 6. Hash Table
@@ -1615,7 +1615,7 @@
<span class="md-nav__icon md-icon"></span>
Chapter 6. Hashing
Chapter 6. Hash Table
</label>
@@ -1888,7 +1888,7 @@
<span class="md-ellipsis">
7.3 Array Representation of Tree
7.3 Array Representation of Binary Trees
@@ -2107,7 +2107,7 @@
<span class="md-ellipsis">
8.2 Building a Heap
8.2 Heap Construction Operation
@@ -2135,7 +2135,7 @@
<span class="md-ellipsis">
8.3 Top-K Problem
8.3 Top-k Problem
@@ -2493,7 +2493,7 @@
<span class="md-ellipsis">
10.2 Binary Search Insertion
10.2 Binary Search Insertion Point
@@ -2521,7 +2521,7 @@
<span class="md-ellipsis">
10.3 Binary Search Edge Cases
10.3 Binary Search Boundaries
@@ -2577,7 +2577,7 @@
<span class="md-ellipsis">
10.5 Search Algorithms Revisited
10.5 Searching Algorithms Revisited
@@ -2726,7 +2726,7 @@
<span class="md-ellipsis">
11.1 Sorting Algorithms
11.1 Sorting Algorithm
@@ -3199,7 +3199,7 @@
<span class="md-ellipsis">
12.4 Hanoi Tower Problem
12.4 Hanota Problem
@@ -4114,7 +4114,7 @@
<a href="#1611-installing-ide" class="md-nav__link">
<span class="md-ellipsis">
16.1.1 &nbsp; Installing Ide
16.1.1 &nbsp; Installing IDE
</span>
</a>
@@ -4148,7 +4148,7 @@
<a href="#2-cc-environment" class="md-nav__link">
<span class="md-ellipsis">
2. &nbsp; C/c++ Environment
2. &nbsp; C/C++ Environment
</span>
</a>
@@ -4203,7 +4203,7 @@
<a href="#7-javascript-environment" class="md-nav__link">
<span class="md-ellipsis">
7. &nbsp; Javascript Environment
7. &nbsp; JavaScript Environment
</span>
</a>
@@ -4214,7 +4214,7 @@
<a href="#8-typescript-environment" class="md-nav__link">
<span class="md-ellipsis">
8. &nbsp; Typescript Environment
8. &nbsp; TypeScript Environment
</span>
</a>
@@ -4299,7 +4299,7 @@
<span class="md-ellipsis">
16.3 Terminology Table
16.3 Glossary
@@ -4417,7 +4417,7 @@
<a href="#1611-installing-ide" class="md-nav__link">
<span class="md-ellipsis">
16.1.1 &nbsp; Installing Ide
16.1.1 &nbsp; Installing IDE
</span>
</a>
@@ -4451,7 +4451,7 @@
<a href="#2-cc-environment" class="md-nav__link">
<span class="md-ellipsis">
2. &nbsp; C/c++ Environment
2. &nbsp; C/C++ Environment
</span>
</a>
@@ -4506,7 +4506,7 @@
<a href="#7-javascript-environment" class="md-nav__link">
<span class="md-ellipsis">
7. &nbsp; Javascript Environment
7. &nbsp; JavaScript Environment
</span>
</a>
@@ -4517,7 +4517,7 @@
<a href="#8-typescript-environment" class="md-nav__link">
<span class="md-ellipsis">
8. &nbsp; Typescript Environment
8. &nbsp; TypeScript Environment
</span>
</a>
@@ -4589,7 +4589,7 @@
<!-- Page content -->
<h1 id="161-programming-environment-installation">16.1 &nbsp; Programming Environment Installation<a class="headerlink" href="#161-programming-environment-installation" title="Permanent link">&para;</a></h1>
<h2 id="1611-installing-ide">16.1.1 &nbsp; Installing Ide<a class="headerlink" href="#1611-installing-ide" title="Permanent link">&para;</a></h2>
<h2 id="1611-installing-ide">16.1.1 &nbsp; Installing IDE<a class="headerlink" href="#1611-installing-ide" title="Permanent link">&para;</a></h2>
<p>We recommend using the open-source and lightweight VS Code as the local integrated development environment (IDE). Visit the <a href="https://code.visualstudio.com/">VS Code official website</a>, and download and install the appropriate version of VS Code according to your operating system.</p>
<p><img alt="Download VS Code from the Official Website" class="animation-figure" src="../installation.assets/vscode_installation.png" /></p>
<p align="center"> Figure 16-1 &nbsp; Download VS Code from the Official Website </p>
@@ -4601,11 +4601,11 @@
<h2 id="1612-installing-language-environments">16.1.2 &nbsp; Installing Language Environments<a class="headerlink" href="#1612-installing-language-environments" title="Permanent link">&para;</a></h2>
<h3 id="1-python-environment">1. &nbsp; Python Environment<a class="headerlink" href="#1-python-environment" title="Permanent link">&para;</a></h3>
<ol>
<li>Download and install <a href="https://docs.conda.io/en/latest/miniconda.html">Miniconda3</a>, which requires Python 3.10 or newer.</li>
<li>Download and install <a href="https://docs.conda.io/en/latest/miniconda.html">Miniconda3</a> with Python 3.10 or later.</li>
<li>Search for <code>python</code> in the VS Code extension marketplace and install the Python Extension Pack.</li>
<li>(Optional) Enter <code>pip install black</code> on the command line to install the code formatter.</li>
</ol>
<h3 id="2-cc-environment">2. &nbsp; C/c++ Environment<a class="headerlink" href="#2-cc-environment" title="Permanent link">&para;</a></h3>
<h3 id="2-cc-environment">2. &nbsp; C/C++ Environment<a class="headerlink" href="#2-cc-environment" title="Permanent link">&para;</a></h3>
<ol>
<li>Windows systems need to install <a href="https://sourceforge.net/projects/mingw-w64/files/">MinGW</a> (<a href="https://blog.csdn.net/qq_33698226/article/details/129031241">configuration tutorial</a>); macOS comes with Clang built-in and does not require installation.</li>
<li>Search for <code>c++</code> in the VS Code extension marketplace and install the C/C++ Extension Pack.</li>
@@ -4613,12 +4613,12 @@
</ol>
<h3 id="3-java-environment">3. &nbsp; Java Environment<a class="headerlink" href="#3-java-environment" title="Permanent link">&para;</a></h3>
<ol>
<li>Download and install <a href="https://jdk.java.net/18/">OpenJDK</a> (version must be &gt; JDK 9).</li>
<li>Download and install <a href="https://jdk.java.net/18/">OpenJDK</a> (version 10 or later).</li>
<li>Search for <code>java</code> in the VS Code extension marketplace and install the Extension Pack for Java.</li>
</ol>
<h3 id="4-c-environment">4. &nbsp; C# Environment<a class="headerlink" href="#4-c-environment" title="Permanent link">&para;</a></h3>
<ol>
<li>Download and install <a href="https://dotnet.microsoft.com/en-us/download">.Net 8.0</a>.</li>
<li>Download and install <a href="https://dotnet.microsoft.com/en-us/download">.NET 8.0</a>.</li>
<li>Search for <code>C# Dev Kit</code> in the VS Code extension marketplace and install C# Dev Kit (<a href="https://code.visualstudio.com/docs/csharp/get-started">configuration tutorial</a>).</li>
<li>You can also use Visual Studio (<a href="https://learn.microsoft.com/zh-cn/visualstudio/install/install-visual-studio?view=vs-2022">installation tutorial</a>).</li>
</ol>
@@ -4633,12 +4633,12 @@
<li>Download and install <a href="https://www.swift.org/download/">Swift</a>.</li>
<li>Search for <code>swift</code> in the VS Code extension marketplace and install <a href="https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang">Swift for Visual Studio Code</a>.</li>
</ol>
<h3 id="7-javascript-environment">7. &nbsp; Javascript Environment<a class="headerlink" href="#7-javascript-environment" title="Permanent link">&para;</a></h3>
<h3 id="7-javascript-environment">7. &nbsp; JavaScript Environment<a class="headerlink" href="#7-javascript-environment" title="Permanent link">&para;</a></h3>
<ol>
<li>Download and install <a href="https://nodejs.org/en/">Node.js</a>.</li>
<li>(Optional) Search for <code>Prettier</code> in the VS Code extension marketplace and install the code formatter.</li>
</ol>
<h3 id="8-typescript-environment">8. &nbsp; Typescript Environment<a class="headerlink" href="#8-typescript-environment" title="Permanent link">&para;</a></h3>
<h3 id="8-typescript-environment">8. &nbsp; TypeScript Environment<a class="headerlink" href="#8-typescript-environment" title="Permanent link">&para;</a></h3>
<ol>
<li>Follow the same installation steps as the JavaScript environment.</li>
<li>Install <a href="https://github.com/privatenumber/tsx?tab=readme-ov-file#global-installation">TypeScript Execute (tsx)</a>.</li>