/Binary-trees

Binary trees

Primary LanguageC

0x1D. C - Binary trees

  1. New node mandatory Write a function that creates a binary tree node

  2. Insert left mandatory Write a function that inserts a node as the left-child of another node

  3. Insert right mandatory Write a function that inserts a node as the right-child of another node

  4. Delete mandatory Write a function that deletes an entire binary tree

  5. Is leaf mandatory Write a function that checks if a node is a leaf

  6. Is root mandatory Write a function that checks if a given node is a root

  7. Pre-order traversal mandatory Write a function that goes through a binary tree using pre-order traversal

  8. In-order traversal mandatory Write a function that goes through a binary tree using in-order traversal

  9. Post-order traversal mandatory Write a function that goes through a binary tree using post-order traversal

  10. Height mandatory Write a function that measures the height of a binary tree

  11. Depth mandatory Write a function that measures the depth of a node in a binary tree

  12. Size mandatory Write a function that measures the size of a binary tree

  13. Leaves mandatory Write a function that counts the leaves in a binary tree

  14. Nodes mandatory Write a function that counts the nodes with at least 1 child in a binary tree

  15. Balance factor mandatory Write a function that measures the balance factor of a binary tree

  16. Is full mandatory Write a function that checks if a binary tree is full

  17. Is perfect mandatory Write a function that checks if a binary tree is perfect

  18. Sibling mandatory Write a function that finds the sibling of a node

  19. Uncle mandatory Write a function that finds the uncle of a node