Construct a Full Binary Tree | Hindi | GFG POTD | C++ | Java | Preorder Traversal



Construct a Full Binary Tree | Hindi | GFG POTD | C++ | Java | Preorder Traversal

Construct a Full Binary Tree | Hindi | GFG POTD | C++ | Java | Preorder Traversal

Given two arrays that represent Preorder traversals of a Full binary tree preOrder[] and its mirror tree preOrderMirror[], your task is to complete the function constructBinaryTree(), that constructs the full binary tree using these two Preorder traversals.

Note: It is not possible to construct a general binary tree using these two traversal. But it is possible to create a full binary tree using the above traversals without any ambiguity.

0:00 Introduction
0:18 Problem Statement
1:25 White Board Explanation
10:13 Complexity Analysis
11:05 C++ Code
19:25 Java Code

My DSA Journey:- https://youtu.be/quZBBv12mCQ

How to Earn By GFG Articles:- https://youtu.be/XjvEgkd49Gk

Problem Link:-https://practice.geeksforgeeks.org/problems/93c977e771fc0d82e87ba570702732edb2226ad7/1

Code Link:-https://github.com/ShubhamKashyap138/Data-Structure/blob/main/Construct%20a%20Full%20Binary%20Tree

Playlist Link:-https://youtube.com/playlist?list=PLq3GlRZI14Hui2ILGsfF1Uf2RnbNu9wT3

Linkedin:- https://www.linkedin.com/in/shubham-kashyap-65a29a218/

Instagram:- https://instagram.com/im_shubham_kashyap?igshid=YmMyMTA2M2Y=

My GFG Profile:- https://auth.geeksforgeeks.org/user/shubhamrajput6156/practice

gfg potd
gfg potd today
gfg problem of the day
potd gfg
potd
potd today
gfg

#dsa #datastructures #algorithm #gfg #potd #coding #array #strings #tree #binarysearchtree #codekarlo #dynamicprogramming