Add Zig code blocks.

This commit is contained in:
Yudong Jin
2023-02-01 22:03:04 +08:00
parent 6cd6d5589e
commit 7ce7386bab
25 changed files with 599 additions and 0 deletions

View File

@ -175,6 +175,12 @@ comments: true
}
```
=== "Zig"
```zig title="leetcode_two_sum.zig"
```
### 方法二:辅助哈希表
时间复杂度 $O(N)$ ,空间复杂度 $O(N)$ ,属于「空间换时间」。
@ -337,3 +343,9 @@ comments: true
return [0]
}
```
=== "Zig"
```zig title="leetcode_two_sum.zig"
```