Question: Binary Tree only with parent pointer
Hi,
The fuction should work in C.
I need to create a struct for tree with pointer to parent only, without pointers to left & right childs.
The function got two pointers for two childs and printer the shared parent of them.
The function will print the info of the shared parent.
I attached a doc file that show what I want, there is two blue childs that the red parent is the one that the function need to print.
I alse need to know the struct elements.
Sorry for my english.
Thanks alot