Keep it up! Thank you for spreading the knowledge Edit- I received this much likes for the first time, they arent for me. They are for @Anuj Bhaiya. Support every educator out there who is teaching latest industry required knowledge to us! and thats also for free :)
maine purani videos dekhi hae jisme linked list stack aaur baaki sab implement kiya hae node use karke and thode din phele hi tree bhi karra implement node use karke .. all thanks to you
Bhaiya I have watched the whole Python course for Class 12 that you made in apni kaksha channel...And honestly I am saying that it helped me to build a very strong concept in Python....And now I am very happy to see that you are back again to help us with a new channel....I have decided to do CSE and hope that this channel will help me a lot in future...Keep Growing 🔥🔥🔥 ...Love from Guwahati ❤❤
You explain topics so nicely and what I like most is how you have a positive vibe with you, it just helps me keep the right vibe during this placement time in my college. Really appreciate your content!!!
Bhaiyaa aap bht achaa pdaate ho ... Plzz is channel pe DS of Java vhii se continue kroo ...jhaa se aapne chodaa thaaa..... Bhaiyaaa plzzzzz....hmara bht #nuksaan ho jjayegaa... Who is agree with me ....
Brother, is this playlist enough for a beginner to understand trees well, because I was watching apna college lecture but did not understand the tree lecture at all
love your work : your java explaination was the best on entire internet . just please make videos on remaining algos and anything you feel that is important for us !!
Worth the time for clearing the concepts ,Thank you so much for the efforts, Sir. (Suggestion : Time stamp distribution of topics ,would be more helpful. )
That's a wonderful and precisely explained. But in this case we need to know the tree structure in prior before building the tree. If we want to create tree dynamically then we can build tree using Queue. Remember in a tree we fill the left subtree first before right. So left is filled before right, so its like in our temp queue left will be queued before right. Thus when we dequeue from queue we know which node to fill first. Hence our build tree method will always return a working node The complete example is given below: package com.hitesh.dsa.binarytrees; public class LinkBasedBinaryTree { private Node root; public Node createTreeUsingQueue(String str, LinkedListBasedQueue queue, Node workingNode) { Node incomingNode = new Node(str); if (root == null) { root = incomingNode; return root; } if (workingNode == null) { workingNode = queue.dequeue(); } if (workingNode.getLeftChild() == null) { workingNode.setLeftChild(incomingNode); return workingNode; } else if (workingNode.getRightChild() == null) { workingNode.setRightChild(incomingNode); return workingNode; } else { queue.enqueue(workingNode.getLeftChild()); queue.enqueue(workingNode.getRightChild()); return createTreeUsingQueue(str, queue, null); } } public static class Node { private Node leftChild; private Node rightChild; private String info; public Node(String info) { this.info = info; } private Node parent; public Node getParent() { return parent; } public void setParent(Node parent) { this.parent = parent; } public Node getLeftChild() { return leftChild; } public void setLeftChild(Node leftChild) { this.leftChild = leftChild; } public Node getRightChild() { return rightChild; } public void setRightChild(Node rightChild) { this.rightChild = rightChild; } } public Node getRoot() { return root; } }
Thank you sooo much bhaiya. If I got a dream job, you are the one of important reason. The way you make things easy to understood it's really amazing. Love you
Bhaiya c++ ka bhi ek badhiya sa course banaiye.......Apni kaksha par ek course start hua tha (along with java) but wo kabhi complete nahi hua.......Aap bahut badhiya padhate ho isliye plzzzz
Thank you so much ❤️ Anuj Bhaiya For making this.... I am searching this for last week.. But not able to find explanation like you.... One last request for you is to start Algorithm Series...... Thank you so much once Again ❤️
Despite being red, mars is actually a cold place! I thougth you added this line with a meaning that -Trees seems to be harder, but are actually easy when you understand it well 😅🤣
Bhaiya plz complete remaining Data structures which were not done at Apni Kaksha channel, by the way you were the only reason to subscribe Apni Kaksha.
Anuj bhaiya ek pura series banao ds algo pe it will be easy to learn cause there are many but we don't know from how to start and where to start Please.....
Keep it up! Thank you for spreading the knowledge
Edit- I received this much likes for the first time, they arent for me. They are for @Anuj Bhaiya. Support every educator out there who is teaching latest industry required knowledge to us! and thats also for free :)
Also. thanks bhaiya to hit like button for my comment :)
Bro DS n Algorithm mai full series bana na thik hai ❤️😊😍❤️
maine purani videos dekhi hae jisme linked list stack aaur baaki sab implement kiya hae node use karke and thode din phele hi tree bhi karra implement node use karke ..
all thanks to you
Bhaiya bht shukriya firse ds part start krne k liye ...Aapke jaisa ds koi smjha nhi shakta...shulriya for teaching us😊
wow!! bhaiya aap difficult topics ko aasan bana dete ho thanks!!
No one Literally one can teach us like anuj sir😍❤️
ua-cam.com/video/jko9Gw9AqZk/v-deo.html
Aman dhatterwal
aditya verma :/
Anuj Bhaiya ab Anuj sir bn gye
Exactly
Bhaiya I have watched the whole Python course for Class 12 that you made in apni kaksha channel...And honestly I am saying that it helped me to build a very strong concept in Python....And now I am very happy to see that you are back again to help us with a new channel....I have decided to do CSE and hope that this channel will help me a lot in future...Keep Growing 🔥🔥🔥 ...Love from Guwahati ❤❤
You explain topics so nicely and what I like most is how you have a positive vibe with you, it just helps me keep the right vibe during this placement time in my college. Really appreciate your content!!!
Bhaiyaa aap bht achaa pdaate ho ...
Plzz is channel pe DS of Java vhii se continue kroo ...jhaa se aapne chodaa thaaa.....
Bhaiyaaa plzzzzz....hmara bht #nuksaan ho jjayegaa...
Who is agree with me ....
Tree creation starts at 7:22
Thank u Anuj Bhaiya!
thank you 👍
Brother, is this playlist enough for a beginner to understand trees well, because I was watching apna college lecture but did not understand the tree lecture at all
Thank you bhaiya......bhot dino se wait karr raha thaa iss video ka... Finally mil gaya :-)
No words can define the quality of knowledge you are sharing.I can just say thanks a lot!!!
Ek to to dil hai kitni baar jeetoge, java course bana k he itna accha kaam kiaa,
This channel is going to crash yt algorithm of views!
Keep going! ❤️
The best explaination for creating binary tree i have seen here 👍🔥
Nice Video for Brushing Old topics
bro ,i did not know about tree .Just spent 40 min with your videos and learnt a lot ,You are doing great
lots of love buddy :)
Glad to hear that
Thanks bhaiya for continuing the course🙏🙏
Bahut achhi lagi video bhaiya or aage bhi data structure ki video daalte rehna
Best explanation ......Rank 1 in UA-cam
love your work : your java explaination was the best on entire internet . just please make videos on remaining algos and anything you feel that is important for us !!
is this Sublime Text ??
thank you so much most important playlist for dsa I found!!!!
Worth the time for clearing the concepts ,Thank you so much for the efforts, Sir.
(Suggestion : Time stamp distribution of topics ,would be more helpful. )
Confusion clearing video ........thanks for video🙂
Thank you bhaiyya😍😍😍🧡🧡 for continuing the course. We are forever indebted to you
Thanks for this dsa course.... It's so helpful
Recursive Leap of Faith is best part!!!!
Please make a full course on complete data structures and algorithms. The way you explained the binary tree is really awesome. Keep going...👍
That's a wonderful and precisely explained. But in this case we need to know the tree structure in prior before building the tree. If we want to create tree dynamically then we can build tree using Queue. Remember in a tree we fill the left subtree first before right. So left is filled before right, so its like in our temp queue left will be queued before right. Thus when we dequeue from queue we know which node to fill first. Hence our build tree method will always return a working node The complete example is given below:
package com.hitesh.dsa.binarytrees;
public class LinkBasedBinaryTree {
private Node root;
public Node createTreeUsingQueue(String str, LinkedListBasedQueue queue, Node workingNode) {
Node incomingNode = new Node(str);
if (root == null) {
root = incomingNode;
return root;
}
if (workingNode == null) {
workingNode = queue.dequeue();
}
if (workingNode.getLeftChild() == null) {
workingNode.setLeftChild(incomingNode);
return workingNode;
} else if (workingNode.getRightChild() == null) {
workingNode.setRightChild(incomingNode);
return workingNode;
} else {
queue.enqueue(workingNode.getLeftChild());
queue.enqueue(workingNode.getRightChild());
return createTreeUsingQueue(str, queue, null);
}
}
public static class Node {
private Node leftChild;
private Node rightChild;
private String info;
public Node(String info) {
this.info = info;
}
private Node parent;
public Node getParent() {
return parent;
}
public void setParent(Node parent) {
this.parent = parent;
}
public Node getLeftChild() {
return leftChild;
}
public void setLeftChild(Node leftChild) {
this.leftChild = leftChild;
}
public Node getRightChild() {
return rightChild;
}
public void setRightChild(Node rightChild) {
this.rightChild = rightChild;
}
}
public Node getRoot() {
return root;
}
}
Hats off bhaiya for ur explaining skill
best binary tree explanation on internet . great work .
Kotlin's video was amazing.🔥🔥🔥
Bhaiyaa aapne bahut acha bataya hai.
Thank you sooo much bhaiya.
If I got a dream job, you are the one of important reason.
The way you make things easy to understood it's really amazing.
Love you
Congratulations in which company?
Finally ab jakr samjh aya 😊
Bhaiya me gujrat se hu .. me abhi 12 me hu lekin 12 khatam hone ke bad app ke sare video dekhuga ____you are great teacher love you bruh
Bhaiya thanks a lot you teach so well. You are the only reason that today I know Java so well.
Thanks for uploading this video
Awesome sir ji👌🏻👌🏻❣️
Amazingly Explained!!!
Watching from Nepal. Thank you for everything bhaiya.
Hi bhaiya rudransh pandey here ....thank you for video, was waiting for this video
very very very very well explained bhaiya👍 Thank you
Awesome brother
in c language it is quiet difficult , so i am watching your java implementation
Nice video bhaiya. Your content is really good and best
high on confidence🔥
Best video 🔥
Bhaiya ye series data structures ki continue rakhna please
Bhaiya c++ ka bhi ek badhiya sa course banaiye.......Apni kaksha par ek course start hua tha (along with java) but wo kabhi complete nahi hua.......Aap bahut badhiya padhate ho isliye plzzzz
Bhaiya I'm NEET aspirant but I always watch you and subscribe your channel , because whenever I see you I feel positive ☺️ love you so much 💖
Level sabke niklege !
thank you so much Bhaiya ,you are just live saver even not just live saver you make life so tree friendly😍😍😍😍
Welcome back bhayaa
Aapka nam dekhkar hi subscribe karliya😀
Yes thanks bhaiya you made my day.....
bhaiya it's really help full if you create detail video series on DS and Algo by the way thank you for teaching us.😍😍
It helped me in isc exam
best part of the video :- mars is a cold place
Thank you very much sir 👍
Bhaiya love you 😘😘 … samjh aa geya
Thank you so much ❤️
Anuj Bhaiya
For making this....
I am searching this for last week..
But not able to find explanation like you....
One last request for you is to start Algorithm Series......
Thank you so much once Again ❤️
Anuj Bhaiya Please More vIdeos about java and Android development.
Despite being red, mars is actually a cold place!
I thougth you added this line with a meaning that -Trees seems to be harder, but are actually easy when you understand it well 😅🤣
Thinking level: GODMODE lol 😂
Thank a lot bhaiya for your efforts ...keep growing 😊😊
Bhaiya , data structure ke doosre topics par Bhi video banaye kyuki 3rd semester chal Raha hai . 😀😀 🙏🙏🙏
template mein hi tha :) btw Thanxxxxx a lot anuj bhaiya for making these amazing videos
U r awosome 👍👍👌👌👌👌🙏🙏🙏🙏
bhot gazab bhaia aise to m 2nd year ke end hi placement krlunga :)
ONCE AGAIN YOUR CHANNEL WILL DEFINITELY GROW!!
Amazing explanation!
Anuj bhaiya aap please series banayiye full !!
Keep it up bhaiya..
Very informative 👍👍👍👍
Thanks bhaiya....
Superb video 💥🎉🎆
Bhaiya saare ds algo complete krwa dijiye.... Love you Bhaiya ❤️
You are awesome..
you are too good
so Underrated video.
Bhaiya u r doing a great work . Keep it up😇
Pls make complete series on data structures
Which portion you left at apni kaksha
nice one friend. thanks
Thanks bhaiya
Vaiya ak pura series banaiye iss ka❤️
Always awesome ❤️🔥
Great sir
Love you bhaiya ❤
Thank you so much
Thanq so much bhaiya 😀
Bhaiya plz complete remaining Data structures which were not done at Apni Kaksha channel, by the way you were the only reason to subscribe Apni Kaksha.
Bhaiya my java is not good, but c++ top level. But I will still watch to see your confidence.
7:36 creation of binary tree
Anuj Bhaiyya
I have learnt java so well..
Now I want to go for Ds algo
So Give me Suggestions .
Eagerly waiting for it...Thanks a lot bhaiya.
Pls make videos at this pace only and cover all ds and algo🙏
Thankyou for this knowledgeable lecture ❤️ from Punjab keep it up bro
great video...😍🙏🙏
Anuj bhaiya ek pura series banao ds algo pe it will be easy to learn cause there are many but we don't know from how to start and where to start Please.....
#anujbhaiya , DS n ALGO ka full launch Kar do ... plzzzzz 🔥 🔥
The Nation wants to Know .... Why you left apni kaksha???
lagata he Online lecture ke liye username change kiya he ? 😂😂😂
Haan bhai
APNI kaksha me padhata ye tha lekin Pura credit Aman le leta tha shayad isliye
@@aniketdutta6543 Han placement series wali lecture Kai tumbnail bhi change kar Diya aur anuj bhaiya ka photo laga kar apna dal Diya🤦🤦
@@aniketdutta6543
Tum logo asee mt bolo ...dono hi best hh apni apni jgh ....ab in dono ke beech or misunderstanding mt create kro🙏🙏🙏
Bhaiya, plz make playlist of DS Algo, I love the way you teach❤️🙏🏻
Very happy to see you 😀
Loved the video bhai. ❤️❤️❤️
1st comment & 1st views love uu sir💖💖