void printInDecreasing(NodeOfTree *mainRoot) { if (mainRoot != nullptr) { printInDecreasing(mainRoot->right); std::cout << mainRoot->key << " "; printInDecreasing(mainRoot->left); } }
void printInDecreasing(SetNode *setNode) { if (setNode != NULL) { printInDecreasing(setNode->rightChild); cout << setNode->value << " "; printInDecreasing(setNode->leftChild); } }
void printInDecreasing(Set *curSet) { printInDecreasing(curSet->root); }