From 0ade8d87adc5c504ba29839f236d578dc6eb3c59 Mon Sep 17 00:00:00 2001 From: krahets Date: Sun, 16 Apr 2023 16:38:04 +0800 Subject: [PATCH] Update the page tree --- .../chapter_backtracking/preorder_find_constrained_paths.cpp | 1 + mkdocs.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/codes/cpp/chapter_backtracking/preorder_find_constrained_paths.cpp b/codes/cpp/chapter_backtracking/preorder_find_constrained_paths.cpp index 5067e8c8b..8562a8341 100644 --- a/codes/cpp/chapter_backtracking/preorder_find_constrained_paths.cpp +++ b/codes/cpp/chapter_backtracking/preorder_find_constrained_paths.cpp @@ -11,6 +11,7 @@ vector> res; /* 前序遍历 */ static void preOrder(TreeNode *root) { + // 剪枝 if (root == nullptr || root->val == 3) { return; } diff --git a/mkdocs.yml b/mkdocs.yml index 93f9adf43..805ff23ce 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -169,7 +169,7 @@ nav: - 9.     图: - 9.1.   图: chapter_graph/graph.md - 9.2.   图基础操作: chapter_graph/graph_operations.md - - 9.3.   图的遍历(New): chapter_graph/graph_traversal.md + - 9.3.   图的遍历: chapter_graph/graph_traversal.md - 9.4.   小结: chapter_graph/summary.md - 10.     查找算法: - 10.1.   线性查找: chapter_searching/linear_search.md @@ -187,7 +187,7 @@ nav: - 11.8.   基数排序(New): chapter_sorting/radix_sort.md - 11.9.   小结: chapter_sorting/summary.md - 12.     回溯算法: - - 12.1.   回溯算法: chapter_backtracking/backtracking_algorithm.md + - 12.1.   回溯算法(New): chapter_backtracking/backtracking_algorithm.md - 13.     附录: - 13.1.   编程环境安装: chapter_appendix/installation.md - 13.2.   一起参与创作: chapter_appendix/contribution.md