this is probably the best way someone on the internet has explained the topic.first give foundational concepts of the topic,second drawing it out and then showing the code implementations. i will recommend this playlist to the class i teach. thanks alot .
@@mayurmahajan22 Until you don't know how objects are getting created, how they have referred the basic syntax and all the basic stuff, that would be hard to learn, or you can work harder and can learn both of them together.
@@right4you915 node next is the address which is pointing to the next node... Say you are a linked list you have tow hands, left hand you hare holding a cake, in second hand you are holding a piece of ppr which have the name of your frnd who is holding candles, then your frnd who is holding candles, is holding candles for sure and another piece of ppr which have the name of the frnd who's birthday this is... So you are the head node, your right hand is node next, your scnd frnd is node, who's right hand is node next. 😌😌😌 Hope this explain the working of linked list.
My interviewer asked to implement Link List. I watched this video before one day of interview date at night. I implemented successfully in first attempt. Now he asked me to sort it. I tried but failed. But he didn't rejected me. Keep in mind learn Link List sorting also. Thank You Telusko
this is for all the college professors out there, this is how you teach, this 20 mins video was more helpful than two 1:30 hr classes. This is the best way I have seen someone explaining linked lists to me
I'm kind of a Professor :P But I totally agree with you on this. This way of explaining... with code + examples... is a whole lot better and supposedly students could understand this faster.... BUT! It must also be coupled with the student wanting to learn this stuff :) Anyhow... this is a good tutorial for LL :) Good job!
Guys, I have made 4 general attempts to watch and understand this stuff. I didn't count endless flashbacks within the video itself for 10-20 seconds. The author is right - you might make several attempts, to get it all right. Gratitude to the author for such a great work!
To display the values, you can use while(node!=null){ System.out.println(node.data); node = node.next; } that way you don't need to use the second print statement. Awesome videos, really helpful.
Well I was about to write this amazing comment, actually this is put account that he was teaching and as well as programming, so he had to change the whole concept, that would lead chaos in learners mind, that is why after figuring whole error out, he chose easy way to solve it. On the other hand the person who made the comment follow a great convention in coding that is to avoid as much as possible to simply not write same code statement again and again. Thanks for reading.
Great explanation !!! I really wanna say I was not getting how to approach linkedlist but after watching telusko videos i got it .... I also watched apni kaksha and some other channels but they are not explanaing well and here all my concept become clear. Thank you sir ,!!!
wow! you made it so easy to understand. I've been trying to understand linkedlist creation for about a week now no avail, but just your one video make me grasp it all. thanks a lot
Absolutely amazing. The best explanation of a linked list I have ever seen hands down. The use of the whiteboard whilst running the debugger is genius!
I could not understand anything wat i have learnt back in my university for whole semester but this video is doing great, i just understood the whole damn concept within 20 minutes ...... thank you
This is the best tutorial for this topic. Thank you so much for helping me and I have watched countless tutorials on it but I just can't seem to grasp the concept clearly, but u helped me. Thank you so much for the explanation!! Have a great day!
Hello Sir Navin Reddy garu, All of Your videos are awesome Sir, I'm thankful to you, we all are, actually. And one thing is, while printing the elements, in while loop, instead of checking the condition while(node.next != null), it would be more meaningful to check the condition while(node !=null) so that, we can print the elements irrespective of the last node which is obviously null. instead of while(currentNode.next != null) { System.out.print(currentNode.data + " "); currentNode= currentNode.next; } below looks more good: while(currentNode!= null) { System.out.print(currentNode.data + " "); currentNode= currentNode.next; } . Love You Sir...
Very nice video. You explained it so well that I was able to print all the values of my linked list before you notice the small mistake you made in the code. Happy to discover Telusko.
Thank you so much for this - I have been following other tutorials online to learn more about data structures and algorithms, however this is the first one that really explained what was going on. Great work!
even after watching many videos i couldn't quite understand the concept. but your video was great. i can write up code without having to look at google again. Thanks a lot :)
Its a relief that object oriented was invented, carrying reference to the pointers was always a difficult part in the school. Thanks for the brilliant explanation Sir.
Thank you very much for this thorough walk-through. I understood the concept of Linked list but was stuck at implementing it and your video helped understand it very clearly. hands-on approach is always the best way to retain a concept. Although I was searching for implementation of LL in Javascript, I was able to write it on my own since I saw how it is done in Java.
I had been trying to find a good explanation of the implementation of a linked list for 3 hours. But At last, I found this video. Why didn't I see this video first? I can't tell how helpful is this video for me.
you can use while(node!=null) in show function to print all the values( including the last node) as node is referencing the node itself , just checked by printing the value of node.
Give your attention here i have been asked to implement a List on a interview and you have only paper its a important topic in my opinion. Great explanation btw try to implement insertAt() by yourself before you see it. Also they ask if you can make it for all types of data without using generics you simply put the field in Node class from (int value, double value) etc to Object value; and you can take all kind of data then.
Wonderful Explanation. Thanks man. In my opinion Instead of printing it at the end manually, we can do while(node!=null){ sop(node.data); node = node.next}.
Instead of using while loop in show() within LinkedList class, we can use do-while loop. Then, we don't have to print the last node's data manually outside the loop. Thank you!
Coming from c++ and realizing everything in java is an object, or a class with a bunch of methods is weird, but, not having to remember -> and * and & for memory is beautiful lol. Java really makes OOP much more understandable
Thank you so much, i was tring to code ir but wastnt able to i have seen allmost al videos on liked lis as fa this is the best way to code linked list have have found thank you again.
this is probably the best way someone on the internet has explained the topic.first give foundational concepts of the topic,second drawing it out and then showing the code implementations. i will recommend this playlist to the class i teach. thanks alot .
lol are you the guy who invented blockchain?
Is here anyone to explain me. i am a beginner in java. Can i complete data structure of java i mean this course before core java??
@@mayurmahajan22 Until you don't know how objects are getting created, how they have referred the basic syntax and all the basic stuff, that would be hard to learn, or you can work harder and can learn both of them together.
@@vivekdubey2270 Hello can you help me
I have question that what is Node next ;
@@right4you915 node next is the address which is pointing to the next node... Say you are a linked list you have tow hands, left hand you hare holding a cake, in second hand you are holding a piece of ppr which have the name of your frnd who is holding candles, then your frnd who is holding candles, is holding candles for sure and another piece of ppr which have the name of the frnd who's birthday this is...
So you are the head node, your right hand is node next, your scnd frnd is node, who's right hand is node next.
😌😌😌 Hope this explain the working of linked list.
My interviewer asked to implement Link List.
I watched this video before one day of interview date at night.
I implemented successfully in first attempt.
Now he asked me to sort it.
I tried but failed.
But he didn't rejected me.
Keep in mind learn Link List sorting also.
Thank You Telusko
Where did you interview ?
@@mathewa3531 Infosys power programmer
@@mysteriousloop1377 I'm curious, did you try to sort it? or did you just say that you couldn't without trying?
this is for all the college professors out there, this is how you teach, this 20 mins video was more helpful than two 1:30 hr classes. This is the best way I have seen someone explaining linked lists to me
I had a four hour class about it. I learned much more from this video.
@Shay Treadwell Yes, I did. It was mostly a lot of different examples.
I'm kind of a Professor :P But I totally agree with you on this. This way of explaining... with code + examples... is a whole lot better and supposedly students could understand this faster.... BUT! It must also be coupled with the student wanting to learn this stuff :) Anyhow... this is a good tutorial for LL :) Good job!
Guys, I have made 4 general attempts to watch and understand this stuff. I didn't count endless flashbacks within the video itself for 10-20 seconds. The author is right - you might make several attempts, to get it all right. Gratitude to the author for such a great work!
Thats perfect, thank you indian guys, you always try to make everytjing clear in your tutorials
Sunnatjon Savrulloev 😂😂😂😂😂😂
To display the values, you can use
while(node!=null){
System.out.println(node.data);
node = node.next;
}
that way you don't need to use the second print statement.
Awesome videos, really helpful.
lol i know it
can I ask you how ?
how it is will know to compare the address with out I say "next"
Well I was about to write this amazing comment, actually this is put account that he was teaching and as well as programming, so he had to change the whole concept, that would lead chaos in learners mind, that is why after figuring whole error out, he chose easy way to solve it.
On the other hand the person who made the comment follow a great convention in coding that is to avoid as much as possible to simply not write same code statement again and again. Thanks for reading.
@@giveaway4002 Well, he sort of the used the same logic when he wrote, if(head == null).
or a do-while loop maybe ?
The best explanation ever for LinkedList..... I have seen so many videos of others but couldn’t understand anything...Thank you 🙏🏻
Great explanation !!! I really wanna say I was not getting how to approach linkedlist but after watching telusko videos i got it ....
I also watched apni kaksha and some other channels but they are not explanaing well and here all my concept become clear.
Thank you sir ,!!!
after watching it many times, finally I got to understood Linked List, thank you :D
wow! you made it so easy to understand. I've been trying to understand linkedlist creation for about a week now no avail, but just your one video make me grasp it all. thanks a lot
Only after watching ur video I got clear idea in list thnks a lot sir.. 👍
Absolutely amazing. The best explanation of a linked list I have ever seen hands down. The use of the whiteboard whilst running the debugger is genius!
I could not understand anything wat i have learnt back in my university for whole semester but this video is doing great, i just understood the whole damn concept within 20 minutes ...... thank you
This is the best explanation I have gotten for linked lists. I can finally finish my project! Thank you so much.
This is the best tutorial for this topic. Thank you so much for helping me and I have watched countless tutorials on it but I just can't seem to grasp the concept clearly, but u helped me. Thank you so much for the explanation!! Have a great day!
Sir ,for traverse the node u can check condition as while(node!=null) for reducing the last line SOP(node.data).
Crct
Telusko I love your videos, you are talented in teaching, this is really a great blessing. You are great man
Thank you!
Excellent work!
Really the best way of explaining this on the internet.
It helps a lot for me!
Keep it up!
👍👍👍 not only explained the code properly step-by-step, but also explained it using debugger along with diagram. 💛💛
Very clear and concise explanation, just what I was looking for...subscribed!!!
India numba wan
Thank you guys for all these tutorials. From Mathematics to Programming, ya'll are there to save the day.
Hello Sir Navin Reddy garu, All of Your videos are awesome Sir, I'm thankful to you, we all are, actually.
And one thing is, while printing the elements, in while loop, instead of checking the condition while(node.next != null), it would be more meaningful to check the condition while(node !=null) so that, we can print the elements irrespective of the last node which is obviously null.
instead of
while(currentNode.next != null)
{
System.out.print(currentNode.data + " ");
currentNode= currentNode.next;
}
below looks more good:
while(currentNode!= null)
{
System.out.print(currentNode.data + " ");
currentNode= currentNode.next;
}
. Love You Sir...
Very nice video. You explained it so well that I was able to print all the values of my linked list before you notice the small mistake you made in the code. Happy to discover Telusko.
Thank you so much for this - I have been following other tutorials online to learn more about data structures and algorithms, however this is the first one that really explained what was going on. Great work!
This teacher is very clear, I like his style and I can understand what he says, his accent is very pleasant and he has a good mic!..
This is quite possibly the best elaboration to the linked list data structure I have even seen. Thank you Telusko.
concise yet informative.Keep going man! Thank you very much.
this is probably the best way someone on the internet has explained gr8 job sir
The only one who taught me the data structure entirely and easily.
Thanks a lot ♥♥
I watch this video morethan 3 times .finally I got it.Thank you very much
really awesome video Dissatisfaction = null
even after watching many videos i couldn't quite understand the concept. but your video was great. i can write up code without having to look at google again. Thanks a lot :)
Good explanation.I watched this 4 times,finally I understood 100%
wallah you are the bast one disc. the singly linked list i have ever seen in the youtube, even my doctor in the university, thank you brother
Yes, very helpful. I couldn't have gotten through my assignments otherwise. thanks
I believe that this is the best way to explain to a beginner about how to implement a linked list, it’s articulated well. Thank you sir!
of all the videos, I think this one helped me understand linkedlist the best. Thank you so much my friend.
Thank you so much ! This is the best turorial to see how LinkedList has been implemented in Java.
by far the best explanation on the internet
you are the best man, you have explained it much better than my teacher thank you
I like how you explain the classes to be used. Great Work!
Certainly did understand more about linked lists after watching, thanks :)
18:00 - insted of printing last node manually we can replace while loop condition with (node != null),. It will print last node automatically.
oo wow....thanks bro....😊😊😊
Awesome bro...understood linked list ...was trying to understand it for 4 days
Very helpful after 4 yrs... Thank you
The best video on Linked Lists... Thank you so much...
I was searching this information in java but I didn't find it anywhere.. This is exactly what I was looking for !!
Best tutorial so far , i have encountered so many tutorial , and this is the best!
The way you explain things is simply Awesome!
Its a relief that object oriented was invented, carrying reference to the pointers was always a difficult part in the school. Thanks for the brilliant explanation Sir.
Amazing explanation sir i have watched many videos about how to implement linkedList in java but here i understood.
Way better than my professor. Thank you so much for this
hey finally i understood. i watched 4 times to understand the code. as he told consumes takes time to understand
Thank you so much telusko
Thanks for the extremely detailed explanation! This video was very helpful to see how linked lists are traversed :)
Keep doing what you're doing... love your video! Thank you so much! You have no idea how much this helps me.
thanks this video made my 2 week for learning how to implement the LinkedList in to just 1 hour
Thank you so much for this explanation. I never experienced this type of clear explanation. 👋👋👋
Now I understand what a linked list is...thank you so much
I think I have to watch it atleast 3times to totally understand the implementation part....but tbh this video is awesome!
incredibly explicit explanation sir. thank you!
best lecture to learn linked list implmentatio of java .alien never fails
iconoclastic lecture..sir..aapka tutorial se hi meri college study kat rahi hain..
thank u sir
Thank You so much Navin sir!! It was uploaded way long back but your tutorials are inseparable!!
navin sir you are just awesome...Thanks a lot sir for the ossssmm tutorial series.
this is an incredible video Navid! absolute legend
now i understand how oop concept works in building a data structure thanks to u. Keep up the good work!
for the print function at @18:00 what if you used a do while loop? Wouldn't the function print one last time before it quits?
Thank you very much for this thorough walk-through. I understood the concept of Linked list but was stuck at implementing it and your video helped understand it very clearly. hands-on approach is always the best way to retain a concept. Although I was searching for implementation of LL in Javascript, I was able to write it on my own since I saw how it is done in Java.
I had been trying to find a good explanation of the implementation of a linked list for 3 hours. But At last, I found this video. Why didn't I see this video first? I can't tell how helpful is this video for me.
Thank you so much bro... I saw lots of videos but ur the best...
you can use while(node!=null) in show function to print all the values( including the last node) as node is referencing the node itself , just checked by printing the value of node.
Hampe to he hi 9
for every IT pblm there is a solution reference called telusko thanks buddy....
It was a amazing experience to learn it... Thank u sir♥️
crystal clear explanation,kudos sir
you were right i had to watch it multiple times to understand it, but thank you for uploading this video
simple explanation but best!!!
Give your attention here i have been asked to implement a List on a interview and you have only paper its a important topic in my opinion. Great explanation btw try to implement insertAt() by yourself before you see it. Also they ask if you can make it for all types of data without using generics you simply put the field in Node class from (int value, double value) etc to Object value; and you can take all kind of data then.
we can also reduce time complexity of insert() by using "tail" reference node
Whole heartedly thank you 🎉.The final part debugging is the part where we fetch everything...
Wow. Finally I understood. Clear and concise. Thank you!
Love the way u explain.. clears the concept
Very clear and concise explanation 👍
Thanks alot! Cuz of you now i understanc linked implementation! Having examxs in 2 days!😌
Wonderful Explanation. Thanks man.
In my opinion Instead of printing it at the end manually, we can do while(node!=null){ sop(node.data); node = node.next}.
You are BOSS in JAVA. I love you man.
That might be best way someone explain the concept .thank you
As always "The best" !!
thank you very much for such a detailed explanation of node
Thank You Sir. You are simply best.
It doesn't get bored if I Watch this video again n again
Thank you so much I have understand this topic clearly your method is so good
Thanks it's so much helpfulll 🤩
thanks a lot... Love from Bangladesh.
Instead of using while loop in show() within LinkedList class, we can use do-while loop. Then, we don't have to print the last node's data manually outside the loop.
Thank you!
Hi Mainak, If LinkedList is empty then we will get NullPoniterException if do while loop is used
this is the best video about linklist
sir, you are amazing. i try yo understand this topic for about 3 weeks. now i understood thank you so much
Coming from c++ and realizing everything in java is an object, or a class with a bunch of methods is weird, but, not having to remember -> and * and & for memory is beautiful lol. Java really makes OOP much more understandable
java is way easier for me also coming from C++, java has an easier syntax it just makes life easier!! :p xd
Great explanation sir ❤️
Thank you so much, i was tring to code ir but wastnt able to i have seen allmost al videos on liked lis as fa this is the best way to code linked list have have found thank you again.
Great video, nice explanation. In the method show I think better condition would be node != null as it then prints out last one too :)
Great video man, I implemented it by myself thnx to your video. Will watch the other parts too later on.