Can't underestimate the value of first MANUALLY creating a linked list as you did in the beginning, helps a tonne understanding the normal way of creating one.
I definetly agree! When I was practicing for interviews, I created every data structure from scratch and it helped me understand them 1000000% more than before. Glad you liked it!
In the current version of python, you have to print(currentNode.value, "->", end=" ") in order to print in the same line as he did in the first example.
I have watched more then 10 other videos on linkedlists in python. Yours was truly the first one where I was really able to understand the concept of the code! Many thanks
Hi Anthony, Thank you so much for your efforts. Your explained LinkList very well. Whenever I get confuse I always come here and watch this video again. It just gives my more clarity every time . Best wishes!
nice design - the 2 separate ways. after understanding the 1st way, which is very easy to be understood, grasping the ideas in the 2nd way becomes easy too. thank you!
Thank you so much for this video..It helped my understanding..you cant imagine how hard it has been to understand this concept..The first manual part also helped me understand this..I dont think I would have understood it without the first part..
I watched a ton of videos on this, but this video really clicked for me, especially the beginning part with manually creating the linked list, thank you!
This was so helpful, thank you! This is the best video on linked lists and your teaching style is very thorough. Would you be able to do similar videos on other data structures (binary trees, AVL trees, heaps, etc) in Python as well?
Really good explanation dude. You just made it easier, I had so many questions about implementation before watching this video. You clarified a lot them! Would be great if you can make more videos on other DS implentation in python.
Wait, I don't know how it's working for you, but in line 17 and 18 around the timestamp 4:42, how's node1.nextNode = node2? Shouldn't it be node1.nextNode = node2.value?
Great explanation! The code is working fine but at the end i get an attribute error at the print line "currentNode.value" It says : 'NoneType' object has no attribute 'value' The output i get is:3->44->55->Traceback The rest of the code is working except printlist function
Hello Anthony, i couldn't understand print statement od solution 1 , while iterating you are assigning currentNode but how does it knows how many heads are there as we have in your example and you have assigned node1.head for the first time but how the loop is taking head of node 2 and node 3
Hello, I used your method to store book names in my linked list and I want to sort them in alphabetical order but I can't find the functions. Can anyone help me out?
How it is possible that you have print output in one row in pycharm? in Python 3 print() executes every row. I have like that, but wonder how to do it like in your output None 3 -> None 3 -> 44 -> None 3 -> 44 -> 55 -> None
I also had to look this up. All we need in Python 3 is to add the "end" argument (my reference was www.tutorialspoint.com/how-to-print-in-same-line-in-python). Therefore, line 25 in Python 3 ends up like so: print(currentNode.value, "->", end = " ")
@@varunshrivastava2706 Sorry I mistyped the line number. In order to get the same output layout, the Python 2 line print currentNode.value,"-->", becomes in Python 3 print(currentNode.value, "->", end = " ")
Hi Anthony, Thank you for your wonderful explanation! I really appreciate it! But when I copy the code in the Pycharm, it seems didn't work well because of the difference between Python 2 and Python 3. Can you update the first code to Python 3 when you get a change? Many thanks!
Can't underestimate the value of first MANUALLY creating a linked list as you did in the beginning, helps a tonne understanding the normal way of creating one.
I definetly agree! When I was practicing for interviews, I created every data structure from scratch and it helped me understand them 1000000% more than before. Glad you liked it!
True, I was going nuts on other tutorials since I couldn't understand it but ur showed us the basic steps
Thank you.
@@AnthonySistilli it only ever clicked to me after you manually done it.
This is the only Linked Lists tutorial I've seen where the tutor seem to care about the viewer *understanding* what is being taught.
In the current version of python, you have to
print(currentNode.value, "->", end=" ")
in order to print in the same line as he did in the first example.
thanks a lot bro
yes
thanks!
I was stuck at this point to understand why is my code not printing in single line, this helped...Thanks a lot !
Thank you very much Hartur for this new information.
My professor had an hour long lecture on this topic, and I understood it far better with your video. Thank you!
If there was an award for "Best Linked List explanation for Beginners in Python", this video would definitely get it.
I have watched more then 10 other videos on linkedlists in python. Yours was truly the first one where I was really able to understand the concept of the code!
Many thanks
After watching number of videos on linked list finally I understood. Thanks a ton. Your approach is awesome
Same feeling!!
i watched the video with no audio, and still understood everything. Thats how easy he made it for us. Thankyou!
Hi Anthony,
Thank you so much for your efforts. Your explained LinkList very well. Whenever I get confuse I always come here and watch this video again. It just gives my more clarity every time .
Best wishes!
nice design - the 2 separate ways. after understanding the 1st way, which is very easy to be understood, grasping the ideas in the 2nd way becomes easy too. thank you!
Thank you so much for this video..It helped my understanding..you cant imagine how hard it has been to understand this concept..The first manual part also helped me understand this..I dont think I would have understood it without the first part..
looking for thousands of videos but couldn't understand this video is a life-saver
watched soo many videos,but it was hard for me to understand....thank you very much for the wonderful and simple explanation
Damn, this is definitely the best tutorial I've seen on linked list
I watched a ton of videos on this, but this video really clicked for me, especially the beginning part with manually creating the linked list, thank you!
After watching numerous videos, this finally explains everything. My search has ended.
This is the BEST video on youtube on Linked Lists. It's so simple and easy to understand. I just subscribed!
This helped me a lot, thanks for spending the time to create it!
:) Glad you enjoyed it TJ
by far the best linked list python tutorial , Kudos ...
This was so helpful, thank you! This is the best video on linked lists and your teaching style is very thorough. Would you be able to do similar videos on other data structures (binary trees, AVL trees, heaps, etc) in Python as well?
thank u so much, I was vexed after referring to various videos on linked-lists ,finally I understood urs ...Great explanation
Really good explanation dude. You just made it easier, I had so many questions about implementation before watching this video. You clarified a lot them!
Would be great if you can make more videos on other DS implentation in python.
best tutorial on linked lists i've seen so far!!!!
Llist with python is really confusing but you have explained it very well.
Thanks. Finally, I have found what I want.
Gosh! You’re such an intelligent teacher. Thank you so much for this.
You explained in such lucid manner. Thanks a million Anthony.
its easiest way to implement linked list thanks a lot for your video sir....
best python coding video on LinkedLists thank you
Best explanation I've found on TH-cam. Thank you sir 🙏
Thank you so much sir for this vedio, I thought I would never get linked list implementation, but after this vedio it's never been same again.
I'm so lucky that I found your video! Thanks a ton! Subscribed!
you literarlly saved my life sir
You are just amazing! Please be continue to your channel... please sir!
Thank you so much,,
I will understand a great concept after many classes on youtube.
The first one is very easy to understand.
I just understood the whole concept by just this video
Great and clear explanation bro. Subscribed!!
Bro you are HERO. 😁😁😁😁. Such amazing explanation. Thank you brother.
very easily explained. really thanks a lot sir.
04:32 the currentNode.nextNode is not 7 but Node2. Actually the value of currentNode.nextNode (when currentNode is Node1) is 7. Did I get it right?
Wait, I don't know how it's working for you, but in line 17 and 18 around the timestamp 4:42, how's node1.nextNode = node2? Shouldn't it be node1.nextNode = node2.value?
omg, helped me a bunch with implementing linked lists!
Great explanation!
The code is working fine but at the end i get an attribute error at the print line "currentNode.value"
It says : 'NoneType' object has no attribute 'value'
The output i get is:3->44->55->Traceback
The rest of the code is working except printlist function
Thanks, bro it's amazing, I hope you continue to produce like this video
why did that make sense, thank you
thank you.Atlast I understand properly😊😊
Great explanation! Thanks a lot.
Can you also please share the complexity of the functions?
Hello Anthony, i couldn't understand print statement od solution 1 , while iterating you are assigning currentNode but how does it knows how many heads are there as we have in your example and you have assigned node1.head for the first time but how the loop is taking head of node 2 and node 3
Hi @anthony Thanks for this great tutorial . can I ask you why did you write "retun" in 7.21
When you put your nodes in quotes, are they actually strings instead of integers?
most sincere, thanks
you are truly amazing, thank you for sharing
thanks, sir ... thanks a lot, finally i solved my problem
Very easy to understand, tq u
how can you use attribute of linkedlistnode class in linkedlist class? are these two class related in some ways?
amazing video, much appreciate it
Can somebody explain why print function doesn't have ()? im getting an error when trying to run the code
@Samuel Benson Thank you! I was wondering the same thing.
It is the difference of Python 2 and Python 3.
Hello, I used your method to store book names in my linked list and I want to sort them in alphabetical order but I can't find the functions. Can anyone help me out?
Great explanation!
Glad you think so!
amazing explainantion thanks a lot
wow! awesome! thank you so much!
print currentNode.value, "->",
What does this line do? Why add a ->? Using a comma?
thanks a lot that was very helpful .
what does the insert function return?
Thanks dude ❤
Nice video, helpful
what happens when we run into the break statement ? we simply move out of the loop. But then what does the function insert return ?
It's a procedure
it doesn't return anything
however you can add a return statement like "value inserted"
Please I thought we insert a new node Infront of the head but then I see that you are inserting at the end
Thank you so much
good work
REALLY HELPFULLLL
What’s a constructor ?
Thanks a lot !!
Thank bro❤
Nice!
How it is possible that you have print output in one row in pycharm? in Python 3 print() executes every row.
I have like that, but wonder how to do it like in your output
None
3 ->
None
3 ->
44 ->
None
3 ->
44 ->
55 ->
None
I also had to look this up. All we need in Python 3 is to add the "end" argument (my reference was www.tutorialspoint.com/how-to-print-in-same-line-in-python).
Therefore, line 25 in Python 3 ends up like so:
print(currentNode.value, "->", end = " ")
@@cabjelen And what about this line - print currentNode.value,"-->", This should clearly throw some error.
@@varunshrivastava2706 Sorry I mistyped the line number. In order to get the same output layout, the Python 2 line print currentNode.value,"-->", becomes in Python 3 print(currentNode.value, "->", end = " ")
@@cabjelen You don't have to be sorry about it Elena and thanks for explaining 😃
use end=' '
Must be Python 2 code as the parentheses are not required around the print statement.
tq man
yes
Why do we need to know this? I always see this in cs classes!
love it
please share the codes
noice
He has done many mistakes but how he get the accurate answer
Hi Anthony,
Thank you for your wonderful explanation! I really appreciate it!
But when I copy the code in the Pycharm, it seems didn't work well because of the difference between Python 2 and Python 3. Can you update the first code to Python 3 when you get a change?
Many thanks!