mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-14 20:50:58 +00:00
Update .gitignore
Add build script for Zig.
This commit is contained in:
@@ -108,7 +108,7 @@ $$
|
||||
=== "Zig"
|
||||
|
||||
```zig title="binary_search.zig"
|
||||
|
||||
[class]{}-[func]{binarySearch}
|
||||
```
|
||||
|
||||
### “左闭右开”实现
|
||||
@@ -172,7 +172,7 @@ $$
|
||||
=== "Zig"
|
||||
|
||||
```zig title="binary_search.zig"
|
||||
|
||||
[class]{}-[func]{binarySearch1}
|
||||
```
|
||||
|
||||
### 两种表示对比
|
||||
|
||||
@@ -73,7 +73,7 @@ comments: true
|
||||
=== "Zig"
|
||||
|
||||
```zig title="hashing_search.zig"
|
||||
|
||||
[class]{}-[func]{hashingSearchArray}
|
||||
```
|
||||
|
||||
再比如,如果我们想要给定一个目标结点值 `target` ,获取对应的链表结点对象,那么也可以使用哈希查找实现。
|
||||
@@ -137,7 +137,7 @@ comments: true
|
||||
=== "Zig"
|
||||
|
||||
```zig title="hashing_search.zig"
|
||||
|
||||
[class]{}-[func]{hashingSearchLinkedList}
|
||||
```
|
||||
|
||||
## 10.3.2. 复杂度分析
|
||||
|
||||
@@ -69,7 +69,7 @@ comments: true
|
||||
=== "Zig"
|
||||
|
||||
```zig title="linear_search.zig"
|
||||
|
||||
[class]{}-[func]{linearSearchArray}
|
||||
```
|
||||
|
||||
再比如,我们想要在给定一个目标结点值 `target` ,返回此结点对象,也可以在链表中进行线性查找。
|
||||
@@ -131,7 +131,7 @@ comments: true
|
||||
=== "Zig"
|
||||
|
||||
```zig title="linear_search.zig"
|
||||
|
||||
[class]{}-[func]{linearSearchLinkedList}
|
||||
```
|
||||
|
||||
## 10.1.2. 复杂度分析
|
||||
|
||||
Reference in New Issue
Block a user