VOOZH about

URL: https://www.geeksforgeeks.org/dsa/skewed-binary-tree/

⇱ Skewed Binary Tree - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Skewed Binary Tree

Last Updated : 22 Jul, 2021

A skewed binary tree is a type of binary tree in which all the nodes have only either one child or no child.

Types of Skewed Binary trees 

There are 2 special types of skewed tree: 

👁 Image

1. Left Skewed Binary Tree: 
These are those skewed binary trees in which all the nodes are having a left child or no child at all. It is a left side dominated tree. All the right children remain as null.

Below is an example of a left-skewed tree:

2. Right Skewed Binary Tree: 
These are those skewed binary trees in which all the nodes are having a right child or no child at all. It is a right side dominated tree. All the left children remain as null.

Below is an example of a right-skewed tree:

Comment
Article Tags:
Article Tags: