I have explained the whole code in 2nd lecture. If anyone is facing issue in this 1st lecture code please use the below code, add return statement when the node is None. if node is None: return self.createNode(data)
I'm a beginner and trying hard to solve a leetcode problem regarding trees. But I don't have idea how a tree is constructed. Your explanation gave me complete structure of tree..... Thanks a lot for step by step explanation
Marvelous Explanation Sir. Just a humble request. I want to excel in card games such as- Bluff, Court piece, etc. Please post a tutorial on its algorithm. It'll be both fun & informative. Thanks.
You can start linked list with simple problem :) ua-cam.com/video/CnH48nmU8BI/v-deo.html ua-cam.com/video/litQHGRRSdo/v-deo.html ua-cam.com/video/71lls_x4VdY/v-deo.html ua-cam.com/video/DxvET45WAgE/v-deo.html ua-cam.com/video/o-bnjsY2Hck/v-deo.html
I didn't understand why "return node" is returning the very first node every time because the node value is changing at every recursion. Someone please help.
Coz the head node should be kept hinged, suppose you are going to iterate through the list and if you don't have the head node then how will you proceed. So for going for any operation we have to start with head only. That's why head is kept hinged or safe.😊
Each time new node is added to their respective position by going through condition check, head node is not being changed. Just take few inputs and dry run on paper you will get this one.if you still face problem you can ping on whatsapp 😊
@@noobcodersgang3991 i have explained in the next session code. anyway you can add return statement in condition if node is None. if node is None: return self.createNode(data)
I have explained the whole code in 2nd lecture. If anyone is facing issue in this 1st lecture code please use the below code, add return statement when the node is None.
if node is None:
return self.createNode(data)
I'm a beginner and trying hard to solve a leetcode problem regarding trees. But I don't have idea how a tree is constructed. Your explanation gave me complete structure of tree..... Thanks a lot for step by step explanation
Glad it helped😊. Please do share with your friends too😊
Finally got a best teacher on u tube
just no words...I was struggling to create tree from past 2 days... And today, I got understood by your explanation. Thank you brother
Glad it helped!
I hope this is very easy to understanding tree data structure .Thanks a lot...........
Glad to hear that
THIS VIDEO IS SOOOOOOO GOOOD!!!!!!! this solved my problems that couldnt be solved from other yt videos, thankss
I don't generally comment, but you're really amazing!
Thankyou for clearing my concepts.
Love to see more videos on DSA Python.
Glad to hear that 😊
I am watching from USA. Dada you explain very well. I went on other youtube channel, but didn't understand and came back to you
Glad it helped😊. Please do share with your friends too😊
The most detailed explanation available online, for a tree implementation.
Cool😎 do share with your friends too 🙂
Hi this is the best explanation on BST, thanks for this video
Glad it was helpful!
Like the way how you teach👌🏻
Glad you think so!
If you didn't get it in first time, watch it again
I got to know this information after wasting my 1 week 😢
Loved it broo👍 ....I ll keep watching you videos😁
Glad to hear that
Thanks, this is one of the best video to learn about tree creation using Python...
Glad you liked it
Superbly Explained bruh!!
Glad you liked it
Thanks, bro... your explanation is best for beginners in data structure like me
Glad to hear that
Great job 👏👍👏
Thank you! 😃
very helpful thanks
Glad it helped😊. Please do share with your friends too😊
Easy explanation !! 😍
Glad you liked it
Best explanation ever!!
Thank you so much Sir for enlightening us 🙌❤️
Marvelous Explanation Sir.
Just a humble request.
I want to excel in card games such as- Bluff, Court piece, etc.
Please post a tutorial on its algorithm. It'll be both fun & informative.
Thanks.
Best explained video i have ever seen
U will succeed sir one day
Thanks Bhubhesh for your kind words.
Awesome explanation 👌
Thank you 🙂
very well explained. Thank you!
Glad it helped😊. Please do share with your friends too😊
Hardworker!!
:)
Superb awesome explanation
very easy to follow. Thank you so much for making this video. Best wish to you.
Glad to hear that 🤗. Please share with your friends too 🙂
Great Video
Glad you enjoyed it
It is very helpful bro
Glad to hear that😊
Please do share with your friends too 😉
thanks alot .its really useful one
Thanks 😊 Do watch the linked list videos too😊
Thank you sir.
This was helpful.
Glad you liked it 😊. Do share with your friends too 🙂
Thanks you for this amazing explanation
Glad it helped😊. Please do share with your friends too😊
Nice sayender
:)
super tut
Why is there a separate Node class when the Tree class doesn't even have a constructor?
great vid, dude
Glad you enjoyed it
good job!
Thanks!
very good video sir. i love you
Glad it helped😊. Please do share with your friends too😊
Great explanation ❤️
thank you so much brother
Glad you liked it 😊. Do share with your friends too 🙂
Teacher, could you teach us with a N-ary tree? Please
love you brooo!!
Thankyou so much bro 😁
Glad it helped😊. Please do share with your friends too😊
Thank you very much.
Welcome 😊
Thanks
Thank you
You can start linked list with simple problem :)
ua-cam.com/video/CnH48nmU8BI/v-deo.html
ua-cam.com/video/litQHGRRSdo/v-deo.html
ua-cam.com/video/71lls_x4VdY/v-deo.html
ua-cam.com/video/DxvET45WAgE/v-deo.html
ua-cam.com/video/o-bnjsY2Hck/v-deo.html
You. have not initialised node any where.
Can u plz explain more about node is None .
It's initialized in the beginning, you can check the Node class constructor.
@codingcart can you please share link of linkedlist and array here, i can not find that.
LinkedList
ua-cam.com/play/PLPdtS77PaSutcdxM6FfjfbpW8GiBw-QzL.html
Amazing
Hello sir.🙌🙌
Hello there!
is node a variable or instance? node.left is a variable and we are assigning Node(data) to it..howz that possible? Node(data) has 3 variables
It's a instance, please have a look to class Node you will get it. Also visit part 2 of this lecture it will clear your all doubts.😊
Please explain, in line 9 of code what does Node(data) mean???
he passed value to the contsructor
@@Maxtron Thanks
I didn't understand why "return node" is returning the very first node every time because the node value is changing at every recursion. Someone please help.
Coz the head node should be kept hinged, suppose you are going to iterate through the list and if you don't have the head node then how will you proceed.
So for going for any operation we have to start with head only. That's why head is kept hinged or safe.😊
@@codingcart Actually I understood why the head node is hinged. My question is how is it hinged since the node value changes in the recursive process.
Each time new node is added to their respective position by going through condition check, head node is not being changed. Just take few inputs and dry run on paper you will get this one.if you still face problem you can ping on whatsapp 😊
@@codingcart Finally got it! Thanks for explaining this topic beautifully!
underrated
Glad it helped😊. Please do share with your friends too😊
15:55
Your code doesnt works
It's the part 1 where I have explained only basic ..checkout the next part you will get it 😊
@@codingcart no its showing it had no attirbute type data
Share your code
@@codingcart class Node:
def __init__(self,data):
self.right = None
self.data = data
self.left = None
class Tree:
def createNode(self,data):
return Node(data)
def insert(self,node,data):
if node is None:
self.createNode(data)
if data < node.data:
node.left = self.insert(node.left,data)
else:
node.right = self.insert(node.right,data)
return node
t = Tree()
root = t.createNode(5)
t.insert(root,10)
@@noobcodersgang3991 i have explained in the next session code. anyway you can add return statement in condition if node is None.
if node is None:
return self.createNode(data)
Output sir
too many ads
fantastic
Great video