Tag: Binary Tree

Binary Tree

Find Parent of a Node in Binary Tree | Python Code

How to write a program to find parent of a node in binary tree? Solved using Python code?

Binary Tree

[Solved] PostOrder Traversal of Binary Tree Without Recursion (Iterative)

How to implement postorder traversal without recursion? Python program to print postorder traversal using iteration.

Binary Tree

Program to Create Binary Tree in Python | Explained with Example

Write a program to create binary tree in Python, C/C++ and Java. Adding a new node and reading node values explained with coding examples.

Binary Tree

Binary Tree Tutorials | Interview Questions and Answers

What is a binary tree? How to prepare binary tree interview questions for product-based companies like Amazon?

Binary Tree

[Solved] Find Lowest Common Ancestor in the Binary Tree

How to find and print the lowest common ancestor in the binary tree? Algorithm, complexity, example and program explained in Python, C/C++ and Java code.

Binary Tree

[Solved] Print All Ancestors of a Given Node in the Binary Tree

How to find all ancestors of the given nodes in Binary Tree? Program solved and explained in C/C++, Python, Java.

algorithm

Level Order Traversal in Binary Tree | Explained with Code and Example

Program for level order traversal in binary tree solved in Python, C/C++ and Java. Explained with example and complexity.

algorithm

Program to Find the Height of the Binary Tree using Recursion

How to write a program to find the height of the binary tree using recursion? Solved in Python, C/C++ and Java code.

Binary Tree

Difference Between Min Heap and Max Heap in Data Structure

What is a heap in the data structure? Difference between min heap and max heap. Heapify algorithms, inserting and finding elements and other operations and heap usages.