diff --git a/d4/db6/reverse__binary__tree_8cpp.html b/d4/db6/reverse__binary__tree_8cpp.html
index 416be9d13..6b3673504 100644
--- a/d4/db6/reverse__binary__tree_8cpp.html
+++ b/d4/db6/reverse__binary__tree_8cpp.html
@@ -184,11 +184,11 @@ Functions
252 {
-
-
254 return 0;
-
255}
-
static void test()
Function to test the correctness of the Tree Reversal.
Definition reverse_binary_tree.cpp:242
+
270 {
+
+
272 return 0;
+
273}
+
static void test()
Function to test the correctness of the Tree Reversal.
Definition reverse_binary_tree.cpp:260
@@ -224,11 +224,11 @@ Here is the call graph for this function:
< Single element test
< No element test
< Correct reversal test
-
242 {
-
-
-
-
246}
+
260 {
+
+
+
+
264}
void test1()
A Test to check an simple case.
Definition array_left_rotation.cpp:75
void test3()
A Test to check an invalid shift value.
Definition array_left_rotation.cpp:105
void test2()
A Test to check an empty vector.
Definition array_left_rotation.cpp:90
diff --git a/dd/d03/classoperations__on__datastructures_1_1reverse__binary__tree_1_1_binary_tree-members.html b/dd/d03/classoperations__on__datastructures_1_1reverse__binary__tree_1_1_binary_tree-members.html
index ecff98e1d..8c90ef006 100644
--- a/dd/d03/classoperations__on__datastructures_1_1reverse__binary__tree_1_1_binary_tree-members.html
+++ b/dd/d03/classoperations__on__datastructures_1_1reverse__binary__tree_1_1_binary_tree-members.html
@@ -111,14 +111,17 @@ $(function(){initNavTree('de/dcf/classoperations__on__datastructures_1_1reverse_
This is the complete list of members for operations_on_datastructures::reverse_binary_tree::BinaryTree, including all inherited members.
diff --git a/de/dcf/classoperations__on__datastructures_1_1reverse__binary__tree_1_1_binary_tree.html b/de/dcf/classoperations__on__datastructures_1_1reverse__binary__tree_1_1_binary_tree.html
index 463b9a7b6..12584aadc 100644
--- a/de/dcf/classoperations__on__datastructures_1_1reverse__binary__tree_1_1_binary_tree.html
+++ b/de/dcf/classoperations__on__datastructures_1_1reverse__binary__tree_1_1_binary_tree.html
@@ -149,6 +149,12 @@ Private Member Functions
| Node * | reverseBinaryTree (Node *pivot) |
| | Reverses a Binary Tree recursively by swapping the left and right subtrees and their children.
|
| |
+
|
+ | BinaryTree (const BinaryTree &)=delete |
+
| |
+
|
+BinaryTree & | operator= (const BinaryTree &)=delete |
+
| |
|
@@ -184,7 +190,7 @@ Private Attributes
Creates a BinaryTree with a root pointing to NULL.
-
+
Node * root
Pointer to root node of Binary Tree.
Definition reverse_binary_tree.cpp:54
@@ -213,12 +219,55 @@ Private Attributes
Creates a BinaryTree with a root with an initial value.
-
+
int data[MAX]
test data
Definition hash_search.cpp:24
Definition linkedlist_implentation_usingarray.cpp:14
+
+◆ ~BinaryTree()
+
+
+
+
+
+
+
+
+ | operations_on_datastructures::reverse_binary_tree::BinaryTree::~BinaryTree |
+ ( |
+ | ) |
+ |
+
+
+ |
+
+inline |
+
+
+
+
107 {
+
+
+
110 while (!nodes.
empty()) {
+
111 const auto cur_node = nodes.
back();
+
+
113 if (cur_node) {
+
+
+
116 delete cur_node;
+
117 }
+
118 }
+
119 }
+
+
T emplace_back(T... args)
+
+
+
+
+
+
◆ add()
@@ -244,7 +293,7 @@ Private Attributes
Adds a new Node to the Binary Tree.
-
+
Node * insert(int64_t data, Node *pivot)
inserts a node in the Binary Tree, with the behaviouur of a Binary Search Tree.
Definition reverse_binary_tree.cpp:65
@@ -289,32 +338,30 @@ Here is the call graph for this function:
< Insert left node
< Insert right node
Add nodes while Tree is not empty
-
121 {
-
-
123 if (
root ==
nullptr) {
-
-
125 }
-
-
-
128 while (!nodes.
empty()) {
-
-
130 data.push_back(temp->data);
-
-
132 if (temp->left != nullptr) {
-
133 nodes.
push(temp->left);
-
134 }
-
135 if (temp->right != nullptr) {
-
136 nodes.
push(temp->right);
-
137 }
-
138 }
-
-
140 }
-
+
139 {
+
+
141 if (
root ==
nullptr) {
+
+
143 }
+
+
+
146 while (!nodes.
empty()) {
+
+
148 data.push_back(temp->data);
+
+
150 if (temp->left != nullptr) {
+
151 nodes.
push(temp->left);
+
152 }
+
153 if (temp->right != nullptr) {
+
154 nodes.
push(temp->right);
+
155 }
+
156 }
+
+
158 }
-
@@ -410,14 +457,14 @@ Here is the call graph for this function:
- Returns
- void
Print each element in the tree
Print newline
-
146 {
-
-
-
149 }
-
-
151 }
+
164 {
+
+
+
167 }
+
+
169 }
-
std::vector< int64_t > get_level_order()
Level order traversal of a tree consists of visiting its elements, top to bottom, left to right....
Definition reverse_binary_tree.cpp:121
+
std::vector< int64_t > get_level_order()
Level order traversal of a tree consists of visiting its elements, top to bottom, left to right....
Definition reverse_binary_tree.cpp:139
@@ -449,7 +496,7 @@ Here is the call graph for this function: