Library 3

binarytree
This commit is contained in:
Alessandro Ferro
2021-04-28 15:59:34 +02:00
parent 3997085c8f
commit b6f6baeede
2 changed files with 294 additions and 7 deletions

View File

@ -133,7 +133,7 @@ private:
protected:
struct BinaryTree<Data>::Node* curr;
StackLst<Data> stack;
StackLst<BinaryTree<Data>::Node*> stack(); // default constructor for stacklst
public:
@ -192,8 +192,8 @@ private:
protected:
struct BinaryTree<Data>::Node* curr;
StackLst<Data> stack;
StackLst<BinaryTree<Data>::Node*> stack;
struct BinaryTree<Data>::Node* DeepestLeftLeaf(struct BinaryTree<Data>::Node*);
public:
// Specific constructors
@ -251,8 +251,8 @@ private:
protected:
struct BinaryTree<Data>::Node* curr;
StackLst<Data> stack;
StackLst<BinaryTree<Data>::Node*> stack;
struct BinaryTree<Data>::Node* MostLeftNode(struct BinaryTree<Data>::Node*);
public:
// Specific constructors
@ -311,7 +311,7 @@ private:
protected:
struct BinaryTree<Data>::Node* curr;
QueueVec<Data> queue;
QueueVec<BinaryTree<Data>::Node*> queue;
public: