@@animeempire4878 I wouldn't say completely useless. My C++ teacher had these TH-cam videos in the course content folders for us to watch, and he was really good at teaching us the basics.
I think because it's flies in the face of alot of programming language ideas. Pointers themselves take time to get in your head right then you have this data structure, which when drawn out, seems really easy to understand but the syntax is confusing as all heck.
I made this for myself so I can save it in my "lessons" folder in case I need to recap, I explain to myself in stupidly simple terms what each line does, so I thought maybe it will help someone else as well, here it is: struct node{ int data; node *next; }; // these are all pointers, meaning they will hold an address node*n; // Will be used to create new nodes (n=new node;) node*t; // Will be used to link nodes (t->next=n) node*h; // Will hold the head of the node, i.e. the first node, used as a reference to access other nodes. // creating the first node n=new node; // n is a pointer and now holds the address of a newly created node n->data=1; // accessing n's data member and setting it equal to 1 t=n; // t is now pointing to the newly created node, will be used to link nodes h=n; // h is now pointing to the newly created node and will remain so as a reference //creating the second node n=new node; // creating the second node n->data=2; // the new node's member "data" is now equal 2 t->next=n; // t is pointing to the previous node, and we'll set it's (previous node's) "next" member which is a pointer of type "node" to point to the newly created node // just like the data type "int" or "double", now our node is a data type t=t->next; // t will now point to whatever t's member "next" is pointing to, which is the new node (same thing as t=n, t points to n) // thus advancing t (to point to the newly created node) // one more node to recap n=new node; // creating a new node n->data=3; // setting it's member int data = 3 t->next=n; // linking the nodes t=t->next; // advancing t n->next=NULL; // the new node's next pointer now points to nothing, and we know it's the end of the linked list (same thing as t-
I also highly recommend having such a folder for whatever you might be learning, math, programming, anything. Whenever you learn something new, you structure that new concept in your mind in a certain way, by writing it down as you structured it in your mind, you can easily recap it in the future.
Ohh i see. I have seen European guys have now a good understanding for specially we indians. My cousin lives in Canada. He is having good friendship with them
every person who has studied this topic faces almost a similar conceptual problem which has been very nicely eradicated in this video. this is the best video for understanding the concept of linked list.
This 12 minute video explained what was going on with linked lists better than the entire chapter of my textbook. This helped me out so much, and made my programming assignment finally make sense to me.
I have spent the last 4 days prepping for a C++ Data Structures Exam, trying to wrap my head around linked lists and understanding the simplicity thereof... You sir have now been dubbed my Linked Lists guy... Great video, very simple and very informative. Just a note, if I may, maybe mention in the start that you need a base knowledge of pointers. I find many ppl don't understand Linked Lists until they fully understand pointers. All-in-All, a great video. Many Thanks OJ
i agree with you on the part of pointers. If people dont understand the concept of pointers (what the pointers stores, how they point, what they point) understanding linked list topic becomes harder and it may happen that in the near future people forget how they work.
You clearly understand data structures that's why you explain the details about pointers, teachers don't do that and blame students for asking questions! Thank you so much, I wish you all the best :)
dude, thank you very much.. i'm searching for linked list tutorial over a year.. and i've skipped this video every time.. but you're the only one who explains it with the exact working on how they linked each other and how they changed their linkage... i've heard the theory and now i think i can write my own program... thanks again
I actually have a 7 video playlist on my channel PaulProgramming called "Creating a Linked List Project in C++" where I do an entire linked list project on the computer screen. I write the program in the first 6 videos, then compile and test it in the 7th. You should check it out.
I understood the linked list concept while ago, however since last two days I was trying to implement it in C++ without any success...After watching this video, I would definitely say that now I can implement it by myself without just coping, pasting and mugging up the code...Thanks a lot...
I know everyone is saying it, but I just have to add to the praise. Thank you so much! My teacher spent 3 hours trying to explain this concept to me. And you helped me understand it in under 15 minutes!
You're welcome. I do make math tutorials on my other TH-cam channel learnmathtutorials I thought I'd give some computer science / programming tutorials a whirl on this channel to see what people thought. I enjoy tutoring and programming so I will definitly be making some more programming tutorials in the future. :)
the side by side visualization of memory structure really made the whole concept very clear, thanks a lot, this video finally helped me in understanding how to create a linked list. Thank you once again!
bro you are the only one who i am looking for literally whole semester and i got u just before exam very nice video thankyou so much u teached from zero to hero
The h pointer references the beginning of the list and each node references the next node in the list. So if we can access the first part of the list via the h pointer, then we can access every node in the list. That way if we need to modify the list in some way, we always can start at the beginning of the list by accessing the h pointer and traverse to the node or nodes that we need to modify.
Paul I think we only need two pointers! One Head and one Current.. Whenever we generate a new node we can directly connect it to current->next and then current=current->next. That way we don't need the temp pointer!
wow, thank you so much Paul. The way you explain the linked list was very understandable and easy to comprehend, which probably saved me hours watching other's videos. Much better than my university professor explanation.
You really helped me finally understand this concept. It's not too difficult, but it sure can be confusing. Reiterating this a few times in the video really helped nail the concept down for me.
since I am new to concepts in C and C++, apart from the keyword "new" being used frequently in C++ (which I forgot how it works in C), majority of this stuff seems easier a bit now, thanks Paul! :)
After 7 days and more than 20 linked list tutorials, I was just about to check myself into the nuthouse. Not bragging, but I'm of reasonable intelligence--top 30 undergrad , 1300 SAT, 1270 GRE, PhD candidate, scientific publications in statistics and programming (just no C/C++ experience). And yet, I couldn't connect the simple concept with the simple code, until now!* *One minor point for those using C..."new node" in C++ is the same as "malloc(sizeof(struct node))" in C. Thanks!!!!!
Feeling really grateful to TH-cam and you sir❣️. I was trying to clear concept from more than a week 🥲 but wasn't able to learn like how the memory is assigning but you made it all very clear ☺️. Thanks sir a lot because of this one concept i am able to believe that i can do linked list well now. Felling blessed or maybe even i can't even able express my feelings now thanks a lot sir Much respect 🙏.
This video explained linked lists to me better than any other article or video I have came across. Thank you so much for this. I will definitely subscribe.
The video is awesome. The simplicity of your teaching is unbelievable I would like if you could make a project in which the concept. Thank you very much This video has cleared most of my doubts in linked list
Thank you Paul! It's too late for me now my test is tomorrow but it might help other people if you did a video like this for doubly linked list and circular queues if you haven't already
Awesome explanation. I thought to stop learning data structures becouz I was finding linked list too difficult to learn. But here comes the saviour 😌 . Thank you so much 😀
Thank you so much for doing this. This variable pointers following each node is hard to explain and understand but you did a great job. I really wish arrays in C++ were such as in PHP where they were dynamic and you and have key value pairs and values that can be different data types..
Thank you very much for this video! It's the best video I've seen that covered Linked Lists which included information on both the concept and the actual coding of a Linked List. Linked Lists now make sense to me!
awesome.. I read about linked lists in my text book, checked the code samples but I couldn't make any sense out of it (well, some of it).. until now.. thank you so much for this explanation!
You explain in twelve minute a concept that took my teacher more than an hour and still couldn't get clear. Thank you, sir!
My teacher didn't even explain because he didn't knew .. LOL :D
Teachers and schools are totally useless.
completely agree, my teacher in same condition but still I got mid term tomorrow and its the part of paper :-(
i am also bro
@@animeempire4878 I wouldn't say completely useless. My C++ teacher had these TH-cam videos in the course content folders for us to watch, and he was really good at teaching us the basics.
I think because it's flies in the face of alot of programming language ideas. Pointers themselves take time to get in your head right then you have this data structure, which when drawn out, seems really easy to understand but the syntax is confusing as all heck.
I made this for myself so I can save it in my "lessons" folder in case I need to recap, I explain to myself in stupidly simple terms what each line does, so I thought maybe it will help someone else as well, here it is:
struct node{
int data;
node *next;
};
// these are all pointers, meaning they will hold an address
node*n; // Will be used to create new nodes (n=new node;)
node*t; // Will be used to link nodes (t->next=n)
node*h; // Will hold the head of the node, i.e. the first node, used as a reference to access other nodes.
// creating the first node
n=new node; // n is a pointer and now holds the address of a newly created node
n->data=1; // accessing n's data member and setting it equal to 1
t=n; // t is now pointing to the newly created node, will be used to link nodes
h=n; // h is now pointing to the newly created node and will remain so as a reference
//creating the second node
n=new node; // creating the second node
n->data=2; // the new node's member "data" is now equal 2
t->next=n; // t is pointing to the previous node, and we'll set it's (previous node's) "next" member which is a pointer of type "node" to point to the newly created node
// just like the data type "int" or "double", now our node is a data type
t=t->next; // t will now point to whatever t's member "next" is pointing to, which is the new node (same thing as t=n, t points to n)
// thus advancing t (to point to the newly created node)
// one more node to recap
n=new node; // creating a new node
n->data=3; // setting it's member int data = 3
t->next=n; // linking the nodes
t=t->next; // advancing t
n->next=NULL; // the new node's next pointer now points to nothing, and we know it's the end of the linked list (same thing as t-
I also highly recommend having such a folder for whatever you might be learning, math, programming, anything.
Whenever you learn something new, you structure that new concept in your mind in a certain way, by writing it down as you structured it in your mind, you can easily recap it in the future.
That's great and thanks for the advice man
Thank u for making life easy!
@@SilverMiraii I was thinking of making a private folder of videos like this, so I won't forget entirely.
God bless you
9 years later and you keep saving our lives in studying Linked Lists. Thank you so much! Greetings from Brazil.
Ohh i see. I have seen European guys have now a good understanding for specially we indians. My cousin lives in Canada. He is having good friendship with them
I literally learned in 14 min what my professor spent 2 weeks explaining. Thank you !
Are you still studying C++?
@@jmoney1941 are you still studying c++?
@@abdullahwaqar3024 I am.
@@jmoney1941ok nice keep learning!
I put speed to 1.5× watched it. It's like 9 minutes to learn a 2 weeks chapter
The most fundamentally precise visual anyone has ever implemented across any platform. THANK YOU!
every person who has studied this topic faces almost a similar conceptual problem which has been very nicely eradicated in this video.
this is the best video for understanding the concept of linked list.
This 12 minute video explained what was going on with linked lists better than the entire chapter of my textbook. This helped me out so much, and made my programming assignment finally make sense to me.
I have spent the last 4 days prepping for a C++ Data Structures Exam, trying to wrap my head around linked lists and understanding the simplicity thereof... You sir have now been dubbed my Linked Lists guy...
Great video, very simple and very informative. Just a note, if I may, maybe mention in the start that you need a base knowledge of pointers. I find many ppl don't understand Linked Lists until they fully understand pointers.
All-in-All, a great video.
Many Thanks OJ
i agree with you on the part of pointers. If people dont understand the concept of pointers (what the pointers stores, how they point, what they point) understanding linked list topic becomes harder and it may happen that in the near future people forget how they work.
Thnx Mate. I spent 6 hrs understanding it but I couldn't.
After watching your video I understood it properly. Thnx mate.
from India
exactly me too reading from websites
same !
You clearly understand data structures that's why you explain the details about pointers, teachers don't do that and blame students for asking questions! Thank you so much, I wish you all the best :)
great work...i literally was struggling with this topic and after watching this video...i understood it. Thank u sooo much
dude, thank you very much.. i'm searching for linked list tutorial over a year.. and i've skipped this video every time.. but you're the only one who explains it with the exact working on how they linked each other and how they changed their linkage... i've heard the theory and now i think i can write my own program... thanks again
I actually have a 7 video playlist on my channel PaulProgramming called "Creating a Linked List Project in C++" where I do an entire linked list project on the computer screen. I write the program in the first 6 videos, then compile and test it in the 7th. You should check it out.
I just love you man. 12 minutes explained everything i was trying to understand.
You just cleared up two weeks of lectures that went right over my head.
bruh same as me
The way you drew out the linked list connections made me understand how to use those syntax and how they work,thank you.
One of the best videos to understand linked lists in under 12 minutes.
I understood the linked list concept while ago, however since last two days I was trying to implement it in C++ without any success...After watching this video, I would definitely say that now I can implement it by myself without just coping, pasting and mugging up the code...Thanks a lot...
EXTREMELY helpful. I got left behind quickly in lecture this week. I couldn't be more thankful.
I know everyone is saying it, but I just have to add to the praise. Thank you so much! My teacher spent 3 hours trying to explain this concept to me. And you helped me understand it in under 15 minutes!
Spend 2 weeks with assignment trying to understand what's happening here. All I need was youtube. Thank you.
I wish my university teachers were as clear and concise as you are. Thanks so much for your tutorial!
Thank you. This is the first video where I understood everything about linked lists in a go. Wonderful explanation!
I really appreciate the clear explanation. If only my professors were as good!
This tutorial was beyond perfect for understanding linked lists. Thanks so much!
This channel literally deserves millions of subscribers. I am supporting this channel. Are you?
(Lots of love from India)
You're welcome. I do make math tutorials on my other TH-cam channel learnmathtutorials
I thought I'd give some computer science / programming tutorials a whirl on this channel to see what people thought. I enjoy tutoring and programming so I will definitly be making some more programming tutorials in the future. :)
the side by side visualization of memory structure really made the whole concept very clear, thanks a lot, this video finally helped me in understanding how to create a linked list. Thank you once again!
Thnx man. I had just startd linked lists and was deeply confused. My teacher is absolutely inept at teaching. This tutorial helps a lot. Thanx!
Thank you for clearing all my doubts with the step-by-step explanation of all the statements in the code.
11 years , but still amazing
you're the one that helped me to understand this lesson no cap
bro you are the only one who i am looking for literally whole semester and i got u just before exam
very nice video
thankyou so much u teached from zero to hero
Man the way you explain it is amazing. I understand it in just 12 minutes ... THANK YOU
Thanks dude, I'm in a computer class and I've never used C++ before. Your video helped me get through it.
you are a freaking life saver , u taught what my teacher couldnt teach in 12 min, u the goat fr :) i love u so much
I could never understand how it works before watching your video, but you explained it so clearly.Thank you so much!
got back to this guy.. his teaching can make understand newbie and advanced student as well.. Thanks a lot
Even after 10 years, this video is still amazing!
way good man !
did not get in my whole 1 hour class of my college but got in 10 mins because of you .
love from India !!!
Trust Me This is the best linked list explaination video i have ever seen on youtube
The h pointer references the beginning of the list and each node references the next node in the list. So if we can access the first part of the list via the h pointer, then we can access every node in the list. That way if we need to modify the list in some way, we always can start at the beginning of the list by accessing the h pointer and traverse to the node or nodes that we need to modify.
Paul I think we only need two pointers! One Head and one Current.. Whenever we generate a new node we can directly connect it to current->next and then current=current->next. That way we don't need the temp pointer!
this made me understand the concept sooo much quicker than the 3 lectures my professor spent on it
Bro I understood the concept in 12 mins in this video
I watched some other videos about this topic but none of them could explain as good as you
Awesome. I'm not a native English speaker. But your tutorial is much more understandable than native vids I watched before.
Thank you so much.
wow, thank you so much Paul. The way you explain the linked list was very understandable and easy to comprehend, which probably saved me hours watching other's videos. Much better than my university professor explanation.
You really helped me finally understand this concept. It's not too difficult, but it sure can be confusing. Reiterating this a few times in the video really helped nail the concept down for me.
I have searched for a good explanation for
over a week, thanks
Link lists was kind of a pain for me, for some reason. But this tutorial just nailed it. Thanks, you're awesome!
since I am new to concepts in C and C++, apart from the keyword "new" being used frequently in C++ (which I forgot how it works in C), majority of this stuff seems easier a bit now, thanks Paul! :)
After 7 days and more than 20 linked list tutorials, I was just about to check myself into the nuthouse. Not bragging, but I'm of reasonable intelligence--top 30 undergrad , 1300 SAT, 1270 GRE, PhD candidate, scientific publications in statistics and programming (just no C/C++ experience). And yet, I couldn't connect the simple concept with the simple code, until now!*
*One minor point for those using C..."new node" in C++ is the same as "malloc(sizeof(struct node))" in C.
Thanks!!!!!
Hunting down the internet for days finally got it in just minutes Thanks a lot sir...
What a simplest way to deliver the lecture. Thanks Paul Programming
I was learning whole day for this but couldn't understand. Now I find this . Thanks for making me understand. I subscribe now.
Sir what a great way of explanation.... I was stuck on this topic a long back .... None of my clg faculty was able to explain Mee like this
you've explained it well than my proffesor did in the last semester Thanks alot
Feeling really grateful to TH-cam and you sir❣️. I was trying to clear concept from more than a week 🥲 but wasn't able to learn like how the memory is assigning but you made it all very clear ☺️. Thanks sir a lot because of this one concept i am able to believe that i can do linked list well now. Felling blessed or maybe even i can't even able express my feelings now thanks a lot sir Much respect 🙏.
Thank you so much, sir! This really helped me have a clear idea of how linked lists work.
This video explained linked lists to me better than any other article or video I have came across. Thank you so much for this. I will definitely subscribe.
Thank you so much for making an hour worth of a topic into 12 mins
Finally I could find the explanation which provided me with clear visual representation of link list. Thank you for sharing your knowledge!
I've been having a had time with these liked lists, and your video was the first one that made it clear. Thanks a lot, mate;
This should be how this is taught. This explains the code perfectly. Thank you.
thank you, you make more sense then a lot of professors.
Brilliant man, you just explained a big concept that usually takes the professionals to explain in an hour... To the point
THANK YOU!!! I've been trying to wrap my head around the idea of linked lists and your video just made it child's-play. Thumbs-up vote and subscribed.
You are awesome, my prof explained it in a lecture for 90 min but I still had no idea. With your video I have finally understood.
Thanks bro.
This video has made linked list so basic in understanding, my teacher has butchered C++ experience for me. Thx you for the video
patrikJMT for computer science
indeed
Or chemistnate or doc schuster.
The video is awesome.
The simplicity of your teaching is unbelievable
I would like if you could make a project in which the concept.
Thank you very much
This video has cleared most of my doubts in linked list
thank you you helped me understand link lists and pointers for a while I was having trouble understanding the concept, loved the video
Thank you Paul! It's too late for me now my test is tomorrow but it might help other people if you did a video like this for doubly linked list and circular queues if you haven't already
Awesome explanation. I thought to stop learning data structures becouz I was finding linked list too difficult to learn. But here comes the saviour 😌 . Thank you so much 😀
Thank you so much for doing this. This variable pointers following each node is hard to explain and understand but you did a great job. I really wish arrays in C++ were such as in PHP where they were dynamic and you and have key value pairs and values that can be different data types..
Thanks for this. I was having trouble visualizing what was happening and couldn't catch on. This was perfect.
woah!!
It took one hour for my teacher to teach that concept and i did not understand a word and you explained in 12 minutes!
Hey Paul, I just wanted to say that I thought this video was really helpful. I get the idea of how the node points to the next node now! Thanks!
Your twelve mins explanation helped me with my 12 hours of struggle
Thank you very much for this video! It's the best video I've seen that covered Linked Lists which included information on both the concept and the actual coding of a Linked List.
Linked Lists now make sense to me!
awesome.. I read about linked lists in my text book, checked the code samples but I couldn't make any sense out of it (well, some of it).. until now.. thank you so much for this explanation!
This linked list was really complicated for me, but you have made it easy. Thanks !!
12 minutes and I understood what was a huge problem for me, great video bro :)
You have one new subscriber
I'm still a little confused, but this video helped a metric ton. I really do appreciate it.
Thank you. You delivered the best explanation about linked lists ever!
Absolutely the best explanation on the Internet!
It's very helpful for initiating the data structure learning through C++...
Good Job! :)
OMG!!!Your explanation is so clear!!!
Exactly solved my doubt!!
I have a homework to do and this helped me a lot. Thanks!
It's 02:03am but now's the timeee
Great video... thank you so much. I have seen other people try to illustrate this, but nothing really helped me out as much as your video.
the definition of perfect explanation
you just cleared up what my professor was trying to teach us for a week... in 12 minutes
Dude this was great. I was struggling in class trying to understand this concept.
Thank you very much. You taught me so much in these 12 minutes my teacher couldn't teach me in 8 hours.
Awesome Video mate, been struggling with Linked lists for a while and this just made it all make sense!
Thanks very much man, i'm from Brazil and i'm searching for weeks a good video about Linked List C++. Amazing explanation.
This vedio proves very helpful for me to getting the concept of Link list .............
Amazing ............ Level hai.....
Wish you were my comp sci professor! They make it so much more complicated than it is. Thank you for this video!
This video was so good that it cleared my most basic concepts of SLL like a charm. Thanks a ton to this youtuber. :D
Thanks, you helped me a lot! It was one of my horrible topic which nobody could explain me so well as you did. Thanks one more time.