Skip to content

Update 二叉树.md #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update 二叉树.md
将const修改为let
  • Loading branch information
ouzexi authored Oct 21, 2023
commit 22ab1e65e9e1fa5cae55f2d17f24a7637670ea11
4 changes: 2 additions & 2 deletions 数据结构篇/二叉树.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const dfsDownToUp = function(root){ //从下到上
}

const divideAndConquer = function(node){ //分治法
const res = [];
let res = [];
if (node === null) {
return null;
}
Expand Down Expand Up @@ -502,4 +502,4 @@ var insertIntoBST = function (root, val) {
- [binary-tree-level-order-traversal-ii](https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii/)
- [binary-tree-zigzag-level-order-traversal](https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/)
- [validate-binary-search-tree](https://leetcode-cn.com/problems/validate-binary-search-tree/)
- [insert-into-a-binary-search-tree](https://leetcode-cn.com/problems/insert-into-a-binary-search-tree/)
- [insert-into-a-binary-search-tree](https://leetcode-cn.com/problems/insert-into-a-binary-search-tree/)