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.
U r never too late bro, thanks for the intersting videos💯
Thanks Anuj Bhaiya for this amazing explanation...
Ham to anee se hi khush hn
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!
Really nice and easy to understand approach
good way of teaching!
Make more vedio on tree and graph
thanks for posting with such an amazing explanation!!
Very underrated video. But would have been better if the video contained code as well to cross check
Eagerly waiting for this bhiya... Please upload 2 videos in a week atleast. Humble request 😀
Excellent Demonstration
Thank you for your efforts 😊
Good video
That was very simple 👌🔥
great explanation
Good explanation.
This is the best solution for Binary Tree to a Doubly Linked List conversion..thank you Anuj Bhaiya for the awesome explanation
Happy ur return
Thought u left course in middle
@anuj bhaiya love u 3000
nice explanation sir
thanx for the solution
SO SIMPLE
Must watch video
thanks
Please jldi course complete kr do. Main aap hi per depend rehta
Haa. Bhaiyya please jaldi course complete kardo
very well explained
Amazing video bhaiya maza aa gaya
Thanks a lot Bhaiya 🙏🙏
Great content in free
Thanks bhaiya
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
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 ....
Atleast two video one week me upload karo please🙏🙏 it's my humble request sir
void method par null kese return kar sakte hai ??
it is really nice but try to include complexity analyis in the video!
Love you bhaiya ❣️
What is root.left why we using
@anuj bhaiyya
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;
}
}
Bhaiya is back!!
but how to print that list now??
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;
}
};
Sir yh code run hi nhi kr rha
Aspke karaye huye mostly code run nhi krte
Khi na khi error aa hi rhi h
"bohot easy hai"
Void mein aap null return kyun kr rhe ho
'error aa rha h , code run nhi kr rha
Gsoc 2022 pr video bnao from scratch Plzzzz..... Mujhe Javascript aati h
Where can I solve questions on DSA?
GeekfForGeeks or LeetCode
💕❤️❤️💕
❣❣❣❣❣❣❣❣❣
Damn this copyright claim 😑
Hum first
Noo mee
@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