Ayush Gupta has Published 530 Articles

Convert a number into negative base representation in C++

Ayush Gupta

Ayush Gupta

Updated on 06-Jan-2020 11:40:34

286 Views

In this tutorial, we will be discussing a program to convert a number into its negative base representation.For this we will be provided with a number and the corresponding negative base. Our task is to convert the given number into its negative base equivalent. We are allowing only values between ... Read More

Convert a normal BST to Balanced BST in C++

Ayush Gupta

Ayush Gupta

Updated on 06-Jan-2020 11:35:35

219 Views

In this tutorial, we will be discussing a program to convert a normal binary search tree to balanced binary search tree.For this we will be provided with a skewed binary search tree either left or right. Our task is to convert it into a balanced binary search tree following a ... Read More

Convert a given Binary Tree to Doubly Linked List (Set 2) in C++

Ayush Gupta

Ayush Gupta

Updated on 06-Jan-2020 11:31:18

159 Views

In this tutorial, we will be discussing a program to convert a binary tree to a doubly linked list.For this we will be provided with a binary tree. Our task is to convert it into a doubly linked list such that the left and right pointers become the previous and ... Read More

Convert a given Binary Tree to Doubly Linked List (Set 1) in C++

Ayush Gupta

Ayush Gupta

Updated on 06-Jan-2020 11:22:03

215 Views

In this tutorial, we will be discussing a program to convert a binary tree to a doubly linked list.For this we will be provided with a binary tree. Our task is to convert it into a doubly linked list such that the left and right pointers become the previous and ... Read More

Convert a given Binary tree to a tree that holds Logical AND property on C++

Ayush Gupta

Ayush Gupta

Updated on 06-Jan-2020 11:16:54

149 Views

In this tutorial, we will be discussing a program to convert a given Binary tree to a tree that holds Logical AND property.For this we will be provided with a binary tree. Our task is to convert it into a tree that holds the logical AND property means that a ... Read More

Convert a BST to a Binary Tree such that sum of all greater keys is added to every key in C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 06:01:04

115 Views

In this tutorial, we will be discussing a program to convert a BST to a binary tree such that the sum of all greater keys is added to every key.For this, we will be provided with a Binary Search tree. Our task is to convert that tree into a binary ... Read More

Convert a Binary Tree to Threaded binary tree | Set 1 (Using Queue) in C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:54:48

438 Views

In this tutorial, we will be discussing a program to convert a binary tree to a threaded binary tree using a queue data structure.For this, we will be provided with a binary tree. Our task is to convert that particular binary tree into a threaded binary tree by adding additional ... Read More

Convert a Binary Tree to a Circular Doubly Link List in C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:50:16

144 Views

In this tutorial, we will be discussing a program to convert a binary tree to a circular doubly linked list.For this, we will be provided with a binary tree. Our task will be to convert the left and right nodes to the left and right elements respectively. And take the ... Read More

Convert a Binary Tree such that every node stores the sum of all nodes in its right subtree in C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:47:41

150 Views

In this tutorial, we will be discussing a program to convert a binary tree such that every node stores the sum of all nodes in its right subtree.For this, we will be provided with a binary tree. Our task is to return another tree where every node must be equal ... Read More

Convert a Binary Tree into its Mirror Tree in C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:44:58

179 Views

In this tutorial, we will be discussing a program to convert a binary tree into its mirror tree.For this, we will be provided with a binary tree. Our task will be to swap the values on the left and the right end creating a mirror tree from the given binary ... Read More

Advertisements