Skip to content

Commit cb83a11

Browse files
Improved Usability of Code
1 parent 1abb94f commit cb83a11

File tree

12 files changed

+9
-9
lines changed

12 files changed

+9
-9
lines changed

src/.vs/Binary-Search-Tree/v17/.suo

1 KB
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

src/BSTree.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ class BSTree {
147147

148148
}
149149

150+
int Count(Node<DT>* temp) {
151+
if (!temp) {
152+
return 0;
153+
}
154+
155+
return 1 + Count(temp->left) + Count(temp->right);
156+
}
157+
150158
public:
151159
BSTree() : root(NULL) {
152160
}
@@ -240,14 +248,6 @@ class BSTree {
240248
}
241249
}
242250

243-
int Count(Node<DT>* temp) {
244-
if (!temp) {
245-
return 0;
246-
}
247-
248-
return 1 + Count(temp->left) + Count(temp->right);
249-
}
250-
251251
bool CompleteBinaryTree(Node<DT>* temp, int curr = 0)
252252
{
253253

src/x64/Debug/Binary-Search-Tree.exe

0 Bytes
Binary file not shown.

src/x64/Debug/Binary-Search-Tree.ilk

99.7 KB
Binary file not shown.

src/x64/Debug/Binary-Search-Tree.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
 main.cpp
2-
F:\Uniii\Github Repositories\Binary-Search-Tree-Implementation\src\BSTree.h(220): warning C4715: 'BSTree<AccountsRecords>::FullBinaryTree': not all control paths return a value
2+
F:\Uniii\Github Repositories\Binary-Search-Tree-Implementation\src\BSTree.h(228): warning C4715: 'BSTree<AccountsRecords>::FullBinaryTree': not all control paths return a value
33
F:\Uniii\Github Repositories\Binary-Search-Tree-Implementation\src\BSTree.h(148): warning C4715: 'BSTree<AccountsRecords>::traverseForRemove': not all control paths return a value
44
Binary-Search-Tree.vcxproj -> F:\Uniii\Github Repositories\Binary-Search-Tree-Implementation\src\x64\Debug\Binary-Search-Tree.exe

src/x64/Debug/Binary-Search-Tree.pdb

56 KB
Binary file not shown.

src/x64/Debug/main.obj

0 Bytes
Binary file not shown.

src/x64/Debug/vc143.idb

0 Bytes
Binary file not shown.

src/x64/Debug/vc143.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)