diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step1.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step1.png index 9aa48161a4..e84d98dbfc 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step1.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step1.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step10.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step10.png index 815e1f25f3..c484c8e722 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step10.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step10.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step11.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step11.png index 9793a9a03b..c678188f51 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step11.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step11.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step2.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step2.png index fd36983c10..f7fa5b24d9 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step2.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step2.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step3.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step3.png index 9b9da435bf..999a575449 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step3.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step3.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step4.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step4.png index 24eddf3190..8008b84391 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step4.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step4.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step5.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step5.png index ae5d852466..8c91cd42b3 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step5.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step5.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step6.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step6.png index d8114e7e3a..37f2258463 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step6.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step6.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step7.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step7.png index 1ec428bf82..18063c2f20 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step7.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step7.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step8.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step8.png index a05f10089a..0a921b15d8 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step8.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step8.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step9.png b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step9.png index ac4e28a480..f3b695066e 100644 Binary files a/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step9.png and b/docs/chapter_backtracking/backtracking_algorithm.assets/preorder_find_paths_step9.png differ diff --git a/docs/chapter_backtracking/backtracking_algorithm.md b/docs/chapter_backtracking/backtracking_algorithm.md index af5381a100..e6360d473b 100644 --- a/docs/chapter_backtracking/backtracking_algorithm.md +++ b/docs/chapter_backtracking/backtracking_algorithm.md @@ -145,7 +145,7 @@ 在每次“尝试”中,我们通过将当前节点添加进 `path` 来记录路径;而在“回退”前,我们需要将该节点从 `path` 中弹出,**以恢复本次尝试之前的状态**。换句话说,**我们可以将尝试和回退理解为“前进”与“撤销”**,两个操作是互为相反的。 === "<1>" - ![preorder_find_paths_step1](backtracking_algorithm.assets/preorder_find_paths_step1.png) + ![尝试与回退](backtracking_algorithm.assets/preorder_find_paths_step1.png) === "<2>" ![preorder_find_paths_step2](backtracking_algorithm.assets/preorder_find_paths_step2.png) diff --git a/docs/chapter_backtracking/permutations_problem.assets/permutations_ii.png b/docs/chapter_backtracking/permutations_problem.assets/permutations_ii.png index 3635e717bd..79e85bc948 100644 Binary files a/docs/chapter_backtracking/permutations_problem.assets/permutations_ii.png and b/docs/chapter_backtracking/permutations_problem.assets/permutations_ii.png differ diff --git a/docs/chapter_searching/replace_linear_by_hashing.assets/hashing_search.png b/docs/chapter_searching/replace_linear_by_hashing.assets/hashing_search.png deleted file mode 100644 index 777250b7b9..0000000000 Binary files a/docs/chapter_searching/replace_linear_by_hashing.assets/hashing_search.png and /dev/null differ diff --git a/docs/chapter_searching/replace_linear_by_hashing.assets/linear_search.png b/docs/chapter_searching/replace_linear_by_hashing.assets/linear_search.png deleted file mode 100644 index ca56d5ef08..0000000000 Binary files a/docs/chapter_searching/replace_linear_by_hashing.assets/linear_search.png and /dev/null differ diff --git a/docs/chapter_searching/replace_linear_by_hashing.md b/docs/chapter_searching/replace_linear_by_hashing.md index e24a8c42a4..1263114707 100755 --- a/docs/chapter_searching/replace_linear_by_hashing.md +++ b/docs/chapter_searching/replace_linear_by_hashing.md @@ -82,7 +82,7 @@ 2. 将键值对 `num[i]` 和索引 `i` 添加进哈希表; === "<1>" - ![two_sum_hashtable_step1](replace_linear_by_hashing.assets/two_sum_hashtable_step1.png) + ![辅助哈希表求解两数之和](replace_linear_by_hashing.assets/two_sum_hashtable_step1.png) === "<2>" ![two_sum_hashtable_step2](replace_linear_by_hashing.assets/two_sum_hashtable_step2.png) diff --git a/docs/chapter_sorting/counting_sort.md b/docs/chapter_sorting/counting_sort.md index 5887e58fae..d62bc79eb2 100644 --- a/docs/chapter_sorting/counting_sort.md +++ b/docs/chapter_sorting/counting_sort.md @@ -94,7 +94,7 @@ $$ 遍历完成后,数组 `res` 中就是排序好的结果,最后使用 `res` 覆盖原数组 `nums` 即可。 === "<1>" - ![counting_sort_step1](counting_sort.assets/counting_sort_step1.png) + ![计数排序步骤](counting_sort.assets/counting_sort_step1.png) === "<2>" ![counting_sort_step2](counting_sort.assets/counting_sort_step2.png) diff --git a/docs/chapter_tree/binary_search_tree.md b/docs/chapter_tree/binary_search_tree.md index 0b869fb87a..c477049ce2 100755 --- a/docs/chapter_tree/binary_search_tree.md +++ b/docs/chapter_tree/binary_search_tree.md @@ -18,7 +18,7 @@ - 若 `cur.val = num` ,说明找到目标节点,跳出循环并返回该节点; === "<1>" - ![bst_search_step1](binary_search_tree.assets/bst_search_step1.png) + ![二叉搜索树查找节点示例](binary_search_tree.assets/bst_search_step1.png) === "<2>" ![bst_search_step2](binary_search_tree.assets/bst_search_step2.png) @@ -185,7 +185,7 @@ 3. 用 `tmp` 的值覆盖待删除节点的值; === "<1>" - ![bst_remove_case3_step1](binary_search_tree.assets/bst_remove_case3_step1.png) + ![二叉搜索树删除节点示例](binary_search_tree.assets/bst_remove_case3_step1.png) === "<2>" ![bst_remove_case3_step2](binary_search_tree.assets/bst_remove_case3_step2.png) diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step1.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step1.png index a94f9a13ad..85832117b8 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step1.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step1.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step10.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step10.png index 79f991fbc6..e11f7a37d0 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step10.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step10.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step11.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step11.png index cd12146e92..531258596b 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step11.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step11.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step2.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step2.png index b2e81599a9..0eadc166ae 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step2.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step2.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step3.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step3.png index 9fef26c92d..2c513eddf1 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step3.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step3.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step4.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step4.png index e947bb306f..c7a756d272 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step4.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step4.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step5.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step5.png index 30e1fdfbe9..b45b873990 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step5.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step5.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step6.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step6.png index ed02b8128f..59492fd306 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step6.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step6.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step7.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step7.png index 92a0265215..8fbb4be390 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step7.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step7.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step8.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step8.png index 895638e6b7..de9fa1965c 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step8.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step8.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step9.png b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step9.png index 0b302f3947..7e4f726f3f 100644 Binary files a/docs/chapter_tree/binary_tree_traversal.assets/preorder_step9.png and b/docs/chapter_tree/binary_tree_traversal.assets/preorder_step9.png differ diff --git a/docs/chapter_tree/binary_tree_traversal.md b/docs/chapter_tree/binary_tree_traversal.md index 9b7d82b5ab..0e5902552e 100755 --- a/docs/chapter_tree/binary_tree_traversal.md +++ b/docs/chapter_tree/binary_tree_traversal.md @@ -209,7 +209,7 @@ 递归过程可分为“递”和“归”两个相反的部分。“递”表示开启新方法,程序在此过程中访问下一个节点;“归”表示函数返回,代表该节点已经访问完毕。如下图所示,为前序遍历二叉树的递归过程。 === "<1>" - ![preorder_step1](binary_tree_traversal.assets/preorder_step1.png) + ![前序遍历的递归过程](binary_tree_traversal.assets/preorder_step1.png) === "<2>" ![preorder_step2](binary_tree_traversal.assets/preorder_step2.png)