4 Commits
Author SHA1 Message Date
hofmannjo99187 45b6fab21a testing 2025-12-13 15:04:25 +01:00
hofmannjo99187 d1320cf6b7 changed addToTreeRec so it now sets inDuplicate to 0 if needed 2025-12-12 06:48:37 +01:00
hofmannjo99187 369c019c30 ran stackTest 2025-12-11 08:05:48 +01:00
hofmannjo99187 cccc013b99 ran stackTest 2025-12-11 08:05:37 +01:00
5 changed files with 10 additions and 1 deletions
+10 -1
View File
@@ -55,10 +55,16 @@ TreeNode *addToTreeRec(TreeNode *currentNode, TreeNode *newNode, CompareFctType
{
if ((isDuplicate == NULL) || root)
{
if (isDuplicate != NULL)
{
*isDuplicate = 0;
}
return newNode;
}
else
{
*isDuplicate = 0;
return currentNode;
}
}
@@ -82,7 +88,10 @@ TreeNode *addToTreeRec(TreeNode *currentNode, TreeNode *newNode, CompareFctType
}
}
if (isDuplicate != NULL)
{
*isDuplicate = 0;
}
return currentNode;
}
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.