First Upload

This commit is contained in:
2022-02-25 15:33:16 +02:00
commit 0c74d10f0d
295 changed files with 74784 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#include "General.h"
BinaryTree * GetBrotherBinaryTree(BinaryTree * root, BinaryTree * p)
{
if (root)
{
return (NULL);
}
else
{
if (root->left == p)
{
return (root->right);
}
else if (root->right == p)
{
return (root->left);
}
else
{
return (GetBrotherBinaryTree(root->left, p) ||
GetBrotherBinaryTree(root->right, p));
}
}
}
void main(void)
{
}