mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
Correct a comment (#66)
* Fix LinkedList * Fix the prepend method for the LinkedList * Fix the remove method for the MinHeap * Correct a comment
This commit is contained in:
parent
98092ee43f
commit
9311735867
@ -69,7 +69,7 @@ export default class BinaryTreeNode {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// Check if grand-parent has more than two children.
|
||||
// Check if grand-parent has two children.
|
||||
if (!this.parent.parent.left || !this.parent.parent.right) {
|
||||
return undefined;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user