Ayush Gupta has Published 541 Articles

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

88 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

130 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

89 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

55 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

301 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

94 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

98 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

115 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

Program to print last N lines in c++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:42:18

252 Views

In this tutorial, we will be discussing a program to print the last N lines.For this, we will be provided with a string that consists of the new line character to denote the start of the next line and the number of lines to be printed from the last. Our ... Read More

Program to print last 10 lines in C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:40:26

161 Views

In this tutorial, we will be discussing a program to print the last 10 lines.For this, we will be provided with a string that consists of the new line character to denote the start of the next line. Our task is to start from the last and print all the ... Read More

Advertisements