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:
m-maksyutin 2018-06-18 16:30:30 +03:00 committed by Oleksii Trekhleb
parent 98092ee43f
commit 9311735867

View File

@ -69,7 +69,7 @@ export default class BinaryTreeNode {
return undefined; 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) { if (!this.parent.parent.left || !this.parent.parent.right) {
return undefined; return undefined;
} }