📚 Learn how to solve problems and build projects with these Free E-Books ⬇️ C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook 🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/ Experience the power of practical learning, gain career-ready skills, and start building real applications! This is a step-by-step course designed to take you from beginner to expert in no time! 💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10). Use it quickly, because it will be available for a limited time. Code from this video: #include using namespace std; struct Node { int data; Node* left; Node* right; }; Node* createNode(int data) { Node* newNode = new Node(); newNode->data = data; newNode->left = newNode->right = nullptr; return newNode; } int main() { //Level 1 Node* root = createNode(1); //Level 2 root->left = createNode(2); root->right = createNode(3); //Level 3 root->left->left = createNode(4); root->left->right = createNode(5); root->right->left = createNode(6); root->right->right = createNode(7); //Level 4 root->left->right->left = createNode(9); root->right->right->left = createNode(15); cin.get(); }
I can't show enough appreciation for you diving into data structures. I am preparing to go into a data structures course this fall and you have been invaluable in introducing these concepts. Not only do I feel less intimated but you have a way of making these videos interesting and fun. Many of my classmates feel the same way. Your teaching reminds me why I wanted to study programming in the first place.
i can't believe this is better than the damn courses I bought on skillshare. straight right to the point and showing us the common functions that are going to be used. kudos and thanks for this video
I really enjoyed your video, I am a University student (South Africa) doing Computer Science second year this year... and I really admire your tutorials. This is surely a channel I will recommend to all IT and Computer Science students. I remember last year when I was a first-year student; so in the first semester I did Problem Solving in C++ and because by then I didn't know you yet, I got 54% as my final grade for Problem Solving (that's bad). And in the second semester, we did OOP in C++, and I was really struggling with it. But after bumping in your videos my marks went skyrocketing up, and I got 73% in OOP as my final mark, could you imagine, I knew you (your UA-cam videos) just two weeks before writing the final OOP exam but I managed to get a better grade. This year I am getting abused by C++ Data Structures, it's hard but I'm giving it my all, and lucky enough I have you at my rescue. @CodeBeauty You are the best.🤝👏👏
Hey Saldina. I first saw you on the freeCodeCamp video and immediately connected with your teaching style. I have been loving the data structures series so far. Both the C++ video and this series helped a great extent in coming back to C++ after about 6 years. I feel like if you could continue the data structures series it would have been great - implementing different styles and algorithms in the way. These can be concepts like recursion, backtracking, two pointer approach, sliding window, dynamic programming. You get the gist :D Anyway, thanks for all this. Greatly appreciate it!
Your videos are the most helpful on data structure foundations and c++ that I’ve found on all of UA-cam. Thank you! Could you do a video of black red trees
First of all, your narrating "bugs" are not that bad as you think 🤣 This intensity of them is created only in your brain, as a result of the conflict between what you expected and what finally occurred 😊 To us, nothing bad happened at all. Secondly, bravo!!! The easiest explanation of tree data structure on UA-cam. Thank you 💖
Odlični videi Saldina! Jako lepo objašnjavaš, jednostavno a ipak kažeš sve bitno, i još pokažeš na primerima. Hvala na trudu, samo tako nastavi! Pozdrav iz Srbije
for the BST rule described at 8:50 (left child should have the value smaller than its parent, right child should have the value larger than its parent), does that mean if you input the following values in this order: 30, 15, 20, 40, 50, 55 (without giving it left,right ordering), it would have to populate a tree the same as in your example?
The BST tree is also known as red black tree, in order for it to work the data type can be compared, in this case you are talking about ints so it would be done automatically, but if it were a user defined type you'd have to overload the '>' operator
YESS! Another video! Hope you can upload a part 2 to the doubly linked list as well. :) Keep up the great work! You're saving every c++ beginner at a time ❤
I'm sorry, this is likely due to UA-cam's copyright rules. The algorithm probably misinterpreted my audio as something that shouldn't be part of the video, which is obviously a mistake because the video is perfectly fine and two years old. Considering it has 82k views and yours is the first comment of this type, I'm guessing this issue happened recently.
You're terrific at explaining these concepts in such a simple manner. Thanks a lot, I can remember at university a few years ago when I was afraid about this tree data structure.
@@CodeBeauty Amazing :D just started programming less then 2 years ago and no idea why I found it a bit harder then I thought it would be. :| Thanks again for your time and afford! most appreciated !
Coming from a mathematics background, trees are something i have studied in various classes. Thank you for your videos, they are immensely helpful. Does the data have to be integers or can they be some other type of sequential reference system? Like what if it was a list of college classes? They are list like math101 or cs101.
a little question , i 've been asked to do a binary search tree data structure, but there are values that are the same as others, how do you deal with that ?
This is awesome! Thanks for explaining in a easy to understand way. How do you free the memory created by the new keyword? I understand delete is used to free memory or sometimes calling a destructor but I'll like to know how you free the memory.
Hi can you make series on python your concepts are so easy to understand and it would be awesome you make a series on this language btw love your videos
Even though I finished University a long time ago, I still remember the feeling of trying to focus and follow the lectures, but not understanding ANYTHING! That's why I make detailed and step-by-step lessons and cover all the important facts, so that it is easy to learn and make progress. 🥰
Hello, I watched the liked lists videos you created and in there when creating a Node, you created a class and here it's a struct for the node. Is there a reason why not using class as well here ? or we can use one or the other it doesn't matter ?
I paused the video and now I want to answer your question😁. we can create a left node with the createNode function, for example, and give its address to the pointer of the root.
Can you please make a video about how to take a line from a file and put it in a fuction ...and i love your videos you help a lot of people keep it up😁😁
Theoretically the Earth's population that's plugged in is a bit less than the total population, however the theoretical limit with a database is the hardware lol ....lovee de program on anything especially binary......ty, big hugs 🤗 everyone
Now I'm a 3rd year student in cs and in my first and second year you helped me a lot I'm very thankful for your help after watching your 10 hours tutorial I get 93/100 in my first exam in c++ Thank you so much
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.
Code from this video:
#include
using namespace std;
struct Node {
int data;
Node* left;
Node* right;
};
Node* createNode(int data) {
Node* newNode = new Node();
newNode->data = data;
newNode->left = newNode->right = nullptr;
return newNode;
}
int main()
{
//Level 1
Node* root = createNode(1);
//Level 2
root->left = createNode(2);
root->right = createNode(3);
//Level 3
root->left->left = createNode(4);
root->left->right = createNode(5);
root->right->left = createNode(6);
root->right->right = createNode(7);
//Level 4
root->left->right->left = createNode(9);
root->right->right->left = createNode(15);
cin.get();
}
do you have an algorithm to unmerge/split a tree?
I can't show enough appreciation for you diving into data structures. I am preparing to go into a data structures course this fall and you have been invaluable in introducing these concepts. Not only do I feel less intimated but you have a way of making these videos interesting and fun. Many of my classmates feel the same way. Your teaching reminds me why I wanted to study programming in the first place.
i can't believe this is better than the damn courses I bought on skillshare. straight right to the point and showing us the common functions that are going to be used. kudos and thanks for this video
I really enjoyed your video, I am a University student (South Africa) doing Computer Science second year this year... and I really admire your tutorials. This is surely a channel I will recommend to all IT and Computer Science students. I remember last year when I was a first-year student; so in the first semester I did Problem Solving in C++ and because by then I didn't know you yet, I got 54% as my final grade for Problem Solving (that's bad). And in the second semester, we did OOP in C++, and I was really struggling with it. But after bumping in your videos my marks went skyrocketing up, and I got 73% in OOP as my final mark, could you imagine, I knew you (your UA-cam videos) just two weeks before writing the final OOP exam but I managed to get a better grade. This year I am getting abused by C++ Data Structures, it's hard but I'm giving it my all, and lucky enough I have you at my rescue. @CodeBeauty You are the best.🤝👏👏
I appreciate this so much 💓
The timing of this video is perfect. Just started learning this in university. Now I can learn ahead and show off next class xD
Some people are striving to be the best.
Way to go!! ✨✨
Hey Saldina. I first saw you on the freeCodeCamp video and immediately connected with your teaching style. I have been loving the data structures series so far. Both the C++ video and this series helped a great extent in coming back to C++ after about 6 years.
I feel like if you could continue the data structures series it would have been great - implementing different styles and algorithms in the way.
These can be concepts like recursion, backtracking, two pointer approach, sliding window, dynamic programming. You get the gist :D
Anyway, thanks for all this. Greatly appreciate it!
if the children are connected it would be a graph data structure instead of tree
Yess 😁
Thank you so much! It's what I'm actually looking for!
All trees are graphs.
I come straight to your page for every new week of content in my C++ class. Thank you!
This channel is a precious gem.
Your videos are the most helpful on data structure foundations and c++ that I’ve found on all of UA-cam. Thank you!
Could you do a video of black red trees
I’m currently in a Data Structures class at my university. When we got to trees, that’s when this video was uploaded 🤯
it's a sign 😃😃
I’m also enrolled in data structures at my local university. This is very helpful!
Yo I’m literally working on a project in class for this!!! Perfect timing
First of all, your narrating "bugs" are not that bad as you think 🤣
This intensity of them is created only in your brain, as a result of the conflict between what you expected and what finally occurred 😊 To us, nothing bad happened at all.
Secondly, bravo!!! The easiest explanation of tree data structure on UA-cam.
Thank you 💖
Odlični videi Saldina! Jako lepo objašnjavaš, jednostavno a ipak kažeš sve bitno, i još pokažeš na primerima. Hvala na trudu, samo tako nastavi! Pozdrav iz Srbije
for the BST rule described at 8:50 (left child should have the value smaller than its parent, right child should have the value larger than its parent), does that mean if you input the following values in this order: 30, 15, 20, 40, 50, 55 (without giving it left,right ordering), it would have to populate a tree the same as in your example?
The BST tree is also known as red black tree, in order for it to work the data type can be compared, in this case you are talking about ints so it would be done automatically, but if it were a user defined type you'd have to overload the '>' operator
Thank you CodeBeauty,
Your videos are helping to brush-up the things.... Concise and precise....
Please enable the audio of last one min...
Very clear explanation for binary tree c++ implementation
YESS! Another video! Hope you can upload a part 2 to the doubly linked list as well. :) Keep up the great work! You're saving every c++ beginner at a time ❤
No audio after 14:24 !?
Just going through DSA and this is helpful.
Video sound cuts at 14:25 🥲very helpful though❤
I'm sorry, this is likely due to UA-cam's copyright rules. The algorithm probably misinterpreted my audio as something that shouldn't be part of the video, which is obviously a mistake because the video is perfectly fine and two years old. Considering it has 82k views and yours is the first comment of this type, I'm guessing this issue happened recently.
Yeah!! Her subtitles are also not aligned properly. They are one step forward of her speech
You're terrific at explaining these concepts in such a simple manner. Thanks a lot, I can remember at university a few years ago when I was afraid about this tree data structure.
First of all thanks for your amazing tutorials! helped me a lot with C++ OOP.
Off topic - are you going to teach as well C#?
I might do a C# course as well. I love C# and I've been working in it for 5+ years, so if there is enough interest I would gladly do that course :D
@@CodeBeauty Amazing :D just started programming less then 2 years ago and no idea why I found it a bit harder then I thought it would be. :| Thanks again for your time and afford! most appreciated !
I love you. My teacher ❤. You was explained clearly and easy to understand what things you wanna share to others
Thank you 😊 from Egypt
Greetings from nearby Bulgaria! Great video! Currently studying c++ programming in the university and your videos help a lot!
Love you from Pakistan.
You speaking and teaching style is behind the boundaries
@codebeauty Please Cover the Whole Tree. i think you can teach us better than any programmer.
Thanks for starting this topic.
Waited for this 🤝🏻.
Thank You Again.
you are a blessing
Really thankyou for this video
This video clear my doubt which I have been searching for few hours.
This is such a great tutorial...the pictorial truly help.
Your videos are so helpful. Thank you!
I'm glad to hear that! 🥰
You are indeed, the teacher every student dreams of...😂
Please complete data structures as soon as possible with all topics covered...
Coming from a mathematics background, trees are something i have studied in various classes. Thank you for your videos, they are immensely helpful.
Does the data have to be integers or can they be some other type of sequential reference system? Like what if it was a list of college classes? They are list like math101 or cs101.
please make a video on UML DIAGRAMS as soon as possible
I really appreciate this videos!!! Thank you so so much!
will it differ if I used class instead of struct ?
Nope, but there is one important difference between class and structure. Do you know what it is? 😃
Now I started understanding things better by your video could you please upload a video on a circular linked list...... ♥️♥️
Welcome back, we missed you💙
I love Saldina
I was need this video!
a Video explain Hash Tables will be amazin!!
Is that the graph data structure for the closed loop?
Yes
Thank you! You are great! 👏🏼
do you have an algorithm to unmerge/split a tree?
a little question , i 've been asked to do a binary search tree data structure, but there are values that are the same as others, how do you deal with that ?
thanks patiently waiting for the next video on trees
This is awesome! Thanks for explaining in a easy to understand way.
How do you free the memory created by the new keyword? I understand delete is used to free memory or sometimes calling a destructor but I'll like to know how you free the memory.
Hi can you make series on python your concepts are so easy to understand and it would be awesome you make a series on this language btw love your videos
thank you very much, wishing you all the best!
You are best Saldina :)
Graph, and i hope you make a video about graphs 😀
Yes, correct answer 😃😃
You are great 👍!
Very gut video
THANK YOU FOR THIS!! I have literally been checking weekly for a new video by you 🥺❤ & you came through!
❤️❤️
they are very helpful, ty!
Badly need it...your videos saved my exam last week....this topic coverd in recent class but i don’t understand well..thanks and take ❤️❤️❤️❤️
Even though I finished University a long time ago, I still remember the feeling of trying to focus and follow the lectures, but not understanding ANYTHING!
That's why I make detailed and step-by-step lessons and cover all the important facts, so that it is easy to learn and make progress. 🥰
What is the DSt at 6:10?
If you open cmd in a specific folder and type tree command cmd will show you the tree of that folder
Yes, great example! 💜💜
This lady is a codebeauty and a real beauty. )) And funny too. )) I mean, she has a great sense of humor.
Hello, I watched the liked lists videos you created and in there when creating a Node, you created a class and here it's a struct for the node. Is there a reason why not using class as well here ? or we can use one or the other it doesn't matter ?
for 12:07 can we do newNode->left && newNode->right = nullptr;
Wowww that's what I'll be learning this year! Thanks a lot ;))
your tutorials are superb and looking forward for similar tutorials in Python
nullprt was not declared in the scope ??
So.... what is the data structure in the min 3:46?
your teach better than my university professor
Saldina, your subtitles aren't aligned properly in this video. Can you manage this?
Although, the video are very helpful 😊.
Hey Saldina, thanks for your information! If you were my teacher when younger I would be better than Billy Gates now LOL!!
Thanks so much for this !!!! I love these Data Structure Videos
Graph Data structures next please 🙏!! ❤️❤️
What do a root node and batman have in common?
please do graph data structure in c++ programing
I paused the video and now I want to answer your question😁.
we can create a left node with the createNode function, for example, and give its address to the pointer of the root.
Did you continue watching the video, is your answer correct? 😃👊👍
Is that structure "doubly circular linked list"?
Thanks you so much ma'am.
How do I identifier not found
On root = createNode(1);
Can you please make a full detail course for c#.
Thank you!
It’s like double link list?
appreciate, thank you so much for this, hope you have a wonderful day
hey could you answering me what is the difference between NULL and nullptr
Can you please make a video about how to take a line from a file and put it in a fuction ...and i love your videos you help a lot of people keep it up😁😁
why we are using Node * as data type for left and right node
if the child are also connected is it a circular singly linked list?
Just about 3 days ago I was trying to find your video for this topic, and today you posted it!
I think the data structure you showed on paint was a graph?
yes 😃
i would really love to know your settings on vs , wuth that i mean for example your code formats , could you please share this with us ? thank you : )
an intelligent and beautiful woman indeed, cant get tired of watching your tutorial and you
thank you bst 😉
Welcome 😊
the data structure on 3:35 is graph
Yes 👍🤗
perfect🔥🔥
Theoretically the Earth's population that's plugged in is a bit less than the total population, however the theoretical limit with a database is the hardware lol ....lovee de program on anything especially binary......ty, big hugs 🤗 everyone
How will one know that the code that he has written is correct because I don't see the part where you had run the code
That will be explained in the next video, tomorrow 😃
@@CodeBeauty 😄😄 I'll really be waiting
When childrens are interconnected it forms a graph structure.
Yes! Finally someone with the correct answer! 😃😃🥰
@@CodeBeauty it was a surprisingly Quick Reply. 😍
I was waiting for the correct answer 😁
We call it mesh in networking
@@skeptisch2751 its your problem 😏😅
Referred a binary search tree as a BSSTTTT to my professor and he almost had a heart attack
amazing😍
I'm happy to hear that 🥰
3:34 its a cyclically linked list right? :D
Awesome video great content
cyclic graph can be represented by a doubly linked list
Now I'm a 3rd year student in cs and in my first and second year you helped me a lot I'm very thankful for your help after watching your 10 hours tutorial I get 93/100 in my first exam in c++ Thank you so much
I don't quite understand line thirteen in the createNode function, can anyone explain that to me?
great video in perfect time...thank you so much for the video.