mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 09:46:29 +08:00
Update array.md & hash_map.md (#827)
* Update array.md - Update array.md - Add comments to maintain consistency with implementations in other languages. * Update hash_map.md - Update hash_map.md - Update the filename to correspond with the filenames in the "codes/go" directory.
This commit is contained in:
parent
dbf6c1c68d
commit
d86cb0ee5d
2 changed files with 2 additions and 1 deletions
|
@ -100,6 +100,7 @@
|
||||||
=== "C"
|
=== "C"
|
||||||
|
|
||||||
```c title="array.c"
|
```c title="array.c"
|
||||||
|
/* 初始化数组 */
|
||||||
int arr[5] = { 0 }; // { 0, 0, 0, 0, 0 }
|
int arr[5] = { 0 }; // { 0, 0, 0, 0, 0 }
|
||||||
int nums[5] = { 1, 3, 2, 5, 4 };
|
int nums[5] = { 1, 3, 2, 5, 4 };
|
||||||
```
|
```
|
||||||
|
|
|
@ -120,7 +120,7 @@
|
||||||
|
|
||||||
=== "Go"
|
=== "Go"
|
||||||
|
|
||||||
```go title="hash_map.go"
|
```go title="hash_map_test.go"
|
||||||
/* 初始化哈希表 */
|
/* 初始化哈希表 */
|
||||||
hmap := make(map[int]string)
|
hmap := make(map[int]string)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue