Skip to content
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

Update dataStruct-zh.md #165

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
4 changes: 2 additions & 2 deletions DataStruct/dataStruct-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,11 @@ delect(v) {
}
_delect(node, v) {
if (!node) return null
// 寻找的节点比当前节点小,去左子树找
// 寻找的节点比当前节点大,去右子树找
if (node.value < v) {
node.right = this._delect(node.right, v)
} else if (node.value > v) {
// 寻找的节点比当前节点大,去右子树找
// 寻找的节点比当前节点小,去左子树找
node.left = this._delect(node.left, v)
} else {
// 进入这个条件说明已经找到节点
Expand Down