Skip to content

Commit 5792cba

Browse files
committed
Fixed implementation bug thanks to @WeejeeCho
1 parent f5d7a8c commit 5792cba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Order Statistic Tree/OrderStatisticTree.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,10 @@ void RBTree::InOrderWalk(Node *node) {
443443
if (!node) std::cout << "nil" << std::endl;
444444
if(node != nullptr) {
445445

446-
std::cout << node->key <<", " << node->ordinal << ", " << node->size<< "'s left: ";
446+
//std::cout << node->key <<", " << node->ordinal << ", " << node->size<< "'s left: ";
447447
InOrderWalk(node->left);
448448
std::cout << "(" <<node->key << ", "<< node->ordinal << ", " << node->size << ")\t" << (node->isRed ? "Red" : "Black") << std::endl;
449-
std::cout << node->key <<", " << node->ordinal << ", " << node->size<< "'s right: ";
449+
//std::cout << node->key <<", " << node->ordinal << ", " << node->size<< "'s right: ";
450450
InOrderWalk(node->right);
451451
}
452452
}

0 commit comments

Comments
 (0)