From d24e50d4e02192af229184f467caf3d13fb7b162 Mon Sep 17 00:00:00 2001 From: krahets Date: Sat, 11 Mar 2023 00:00:24 +0800 Subject: [PATCH] build --- chapter_array_and_linkedlist/linked_list.md | 4 ++-- chapter_hashing/hash_map.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chapter_array_and_linkedlist/linked_list.md b/chapter_array_and_linkedlist/linked_list.md index 6b2ed45ff..a533a2e4e 100755 --- a/chapter_array_and_linkedlist/linked_list.md +++ b/chapter_array_and_linkedlist/linked_list.md @@ -99,8 +99,8 @@ comments: true ```c title="" /* 链表结点结构体 */ struct ListNode { - int val; // 结点值 - ListNode *next; // 指向下一结点的指针(引用) + int val; // 结点值 + struct ListNode *next; // 指向下一结点的指针(引用) }; ``` diff --git a/chapter_hashing/hash_map.md b/chapter_hashing/hash_map.md index c091904be..d47bc579b 100755 --- a/chapter_hashing/hash_map.md +++ b/chapter_hashing/hash_map.md @@ -21,7 +21,7 @@ comments: true 3. **链表**:每个结点的值为 `[学号, 姓名]` ; 4. **二叉搜索树**:每个结点的值为 `[学号, 姓名]` ,根据学号大小来构建树; -使用上述方法,各项操作的时间复杂度如下表所示(在此不做赘述,详解可见 [二叉搜索树章节](https://www.hello-algo.com/chapter_tree/binary_search_tree/#_6))。无论是查找元素、还是增删元素,哈希表的时间复杂度都是 $O(1)$ ,全面胜出! +使用上述方法,各项操作的时间复杂度如下表所示(在此不做赘述,详解可见 [二叉搜索树章节](https://www.hello-algo.com/chapter_tree/binary_search_tree/))。无论是查找元素、还是增删元素,哈希表的时间复杂度都是 $O(1)$ ,全面胜出!