You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (this.rightChild(index) && this.rightChild(index) < this.items[smallerIndex]) {
// if right is smaller, right swaps
smallerIndex = this.rightChildrenIndex(index);
}
rightChildrenIndex doesn't exist I think you meant rightChildIndex
EDIT: I realized this is a mistake on my part. rightChildrenIndex is defined and rightChildIndex is not. It was a little confusing when typing up the implementation because the left child is called leftChildIndex and leftChild and the right side node getter is rightChild so it made sense for the right side index getter to be rightChildIndex
The text was updated successfully, but these errors were encountered:
rightChildrenIndex
doesn't exist I think you meantrightChildIndex
EDIT: I realized this is a mistake on my part.
rightChildrenIndex
is defined andrightChildIndex
is not. It was a little confusing when typing up the implementation because the left child is calledleftChildIndex
andleftChild
and the right side node getter isrightChild
so it made sense for the right side index getter to berightChildIndex
The text was updated successfully, but these errors were encountered: