No worries! We are sure that you always utilise time well. You take great care of our time as well as of your own time. Keep on earning love and achieving higher successes! 👍👍
Appreciate the video, sir! But in the code you have written a void function but are returning a NULL value in base case. Would be great if you could correct that!
Here the binary tree is converted to Doubly linked list in inorder fashion but can we convert it to doubly linked list of pre-order and post-order fashion ? I cannot find the code for the above two ....
public: //Function to convert binary tree to doubly linked list and return it. Node * bToDLL(Node *root) { if(root==NULL ) return NULL; convertToDLL(root); return head; } };
Apologies for the delay in this video, I was working on an exciting new thing which we'll launch soon. Stay tuned and thanks for Supporting 🙌🏻
Bhayia please launch c++ course and how can kids Learn programming and these platforms like whitehatjr are making fool to us by the name of coding
No worries!
We are sure that you always utilise time well.
You take great care of our time as well as of your own time.
Keep on earning love and achieving higher successes!
👍👍
Bhaiya ye dsa complete kab hogga??
Finally after 2 weeks.... thanks for the tutorial. Love from 🇧🇩
bhaiya i tried this same code in leetcode but for one test case it is showing as found a cycle in the tree what should i do to resolve that issue
For every question please give a short brief about iterative, recursively approach, time, space complexity and how much it can be optimize.
Thanks Anuj Bhaiya for this amazing explanation...
U r never too late bro, thanks for the intersting videos💯
Really nice and easy to understand approach
Very underrated video. But would have been better if the video contained code as well to cross check
This is the best solution for Binary Tree to a Doubly Linked List conversion..thank you Anuj Bhaiya for the awesome explanation
Ham to anee se hi khush hn
good way of teaching!
great explanation
Eagerly waiting for this bhiya... Please upload 2 videos in a week atleast. Humble request 😀
Excellent Demonstration
Good explanation.
Please jldi course complete kr do. Main aap hi per depend rehta
Haa. Bhaiyya please jaldi course complete kardo
Thank you for your efforts 😊
Good video
That was very simple 👌🔥
nice explanation sir
thanks for posting with such an amazing explanation!!
thanx for the solution
SO SIMPLE
Appreciate the video, sir! But in the code you have written a void function but are returning a NULL value in base case. Would be great if you could correct that!
Thanks a lot Bhaiya 🙏🙏
Amazing video bhaiya maza aa gaya
Happy ur return
Thought u left course in middle
@anuj bhaiya love u 3000
thanks
very well explained
Atleast two video one week me upload karo please🙏🙏 it's my humble request sir
Must watch video
Great content in free
Thanks bhaiya
Make more vedio on tree and graph
Love you bhaiya ❣️
Here the binary tree is converted to Doubly linked list in inorder fashion but can we convert it to doubly linked list of pre-order and post-order fashion ? I cannot find the code for the above two ....
Bhaiya is back!!
it is really nice but try to include complexity analyis in the video!
Bro... return type is void but you vare returning null ....it should be only return.
Exactly... for that you've to pass the prev variable to the recursive function
@anuj bhaiyya
void method par null kese return kar sakte hai ??
class Solution
{
//Function to convert binary tree to doubly linked list and return it.
Node head, prev;
Node bToDLL(Node root)
{
if(root==null) return null;
bToDLL(root.left);
if(prev==null){
head=root;
prev=root;
// prev=root;
}
else
{
prev.right=root;
root.left=prev;
prev=root;
}
bToDLL(root.right);
return head;
}
}
What is root.left why we using
GFG solution :
class Solution
{
Node*head = NULL;
Node*prev=NULL;
private:
void convertToDLL(Node*root)
{
if(root==NULL) return;
convertToDLL(root->left);
if(prev==NULL) head = root;
else
{
root->left = prev;
prev->right = root;
}
prev=root;
convertToDLL(root->right);
}
public:
//Function to convert binary tree to doubly linked list and return it.
Node * bToDLL(Node *root)
{
if(root==NULL ) return NULL;
convertToDLL(root);
return head;
}
};
"bohot easy hai"
but how to print that list now??
Gsoc 2022 pr video bnao from scratch Plzzzz..... Mujhe Javascript aati h
Sir yh code run hi nhi kr rha
Aspke karaye huye mostly code run nhi krte
Khi na khi error aa hi rhi h
Void mein aap null return kyun kr rhe ho
'error aa rha h , code run nhi kr rha
Hum first
Noo mee
Where can I solve questions on DSA?
GeekfForGeeks or LeetCode
💕❤️❤️💕
Damn this copyright claim 😑
❣❣❣❣❣❣❣❣❣
@anuj Bhaiya
Make more vedio of tree and graph
Make more vedio of tree and graph
Make more vedio of tree and graph
Make more vedio of tree and graph