class BST { private: struct Node { int val; Node* left; Node* right; }; public: Node* insert(Node* node) {/* do stuff using BST::Node */} // ... };
struct Node // AVL { int val, height; Node* parent; Node* left; Node* right; };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)