#5 Linked List Implementation in Java Part 1 | Data Structures

Ғылым және технология

Spring and Microservices Live Course : bit.ly/springmslive
Coupon: TELUSKO25 (25% Discount)
Industry-Ready Java Spring Microservices Developer Live : bit.ly/JavaMS2
Complete Java Developer Course : bit.ly/Comp-Java-Dev-2
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusko.com/
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
TELUSKO Android App : bit.ly/TeluskoApp
Discord : / discord
Code for LinkedList in Java
Complete playlist of Data Structure Using Java : goo.gl/3eQAYB
LinkedList using C++ in Hindi : goo.gl/Ybo5me
Code : goo.gl/mP1JAC
Linked List implementaion in Java without using Collection
We will use Eclipse IDE here
In this video we will see :
- What is Node
- Step by step explanation on how linked list works
- Operations of Linked list
- insert
- insertAfter
- insertAtIndex
- delete
- showList
- An example explaining LinkedList creation, insertion and show
Linked list is a linear collection of data elements, in which linear order is not given by their physical placement in memory.
Instead, each element points to the next.
It is a data structure consisting of a group of nodes which together represent a sequence.
Under the simplest form, each node is composed of data and a reference (in other words, a link) to the next node in the sequence.
This structure allows for efficient insertion or removal of elements from any position in the sequence during iteration.
Java and Spring Framework For beginners with Spring Boot : - bit.ly/3LDMj8D
Java Tutorial for Beginners (2023) :- bit.ly/3yARVbN
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Editing Laptop :
ASUS ROG Strix - (new version) amzn.to/2RhumwO
Camera : amzn.to/2OR56AV
lens : amzn.to/2JihtQo
Mics
amzn.to/2RlIe9F
amzn.to/2yDkx5F
Subscribe to our other channel:
Navin Reddy : / @navinreddy
Telusko Hindi :
/ @teluskohindi

Пікірлер: 564

  • @mysteriousloop1377
    @mysteriousloop13773 жыл бұрын

    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

  • @mathewa3531

    @mathewa3531

    2 жыл бұрын

    Where did you interview ?

  • @mysteriousloop1377

    @mysteriousloop1377

    2 жыл бұрын

    @@mathewa3531 Infosys power programmer

  • @milkybrain7809

    @milkybrain7809

    2 жыл бұрын

    @@mysteriousloop1377 I'm curious, did you try to sort it? or did you just say that you couldn't without trying?

  • @satoshinakamoto171
    @satoshinakamoto1715 жыл бұрын

    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 .

  • @jiageng1997

    @jiageng1997

    5 жыл бұрын

    lol are you the guy who invented blockchain?

  • @mayurmahajan22

    @mayurmahajan22

    5 жыл бұрын

    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??

  • @vivekdubey2270

    @vivekdubey2270

    5 жыл бұрын

    @@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

    @right4you915

    5 жыл бұрын

    @@vivekdubey2270 Hello can you help me I have question that what is Node next ;

  • @vivekdubey2270

    @vivekdubey2270

    5 жыл бұрын

    @@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.

  • @sunnatjonsavrulloev2691
    @sunnatjonsavrulloev26915 жыл бұрын

    Thats perfect, thank you indian guys, you always try to make everytjing clear in your tutorials

  • @Doweltcross

    @Doweltcross

    4 жыл бұрын

    Sunnatjon Savrulloev 😂😂😂😂😂😂

  • @dilrajsingh5987
    @dilrajsingh59874 жыл бұрын

    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

  • @gabrieldenobrega

    @gabrieldenobrega

    2 жыл бұрын

    I had a four hour class about it. I learned much more from this video.

  • @gabrieldenobrega

    @gabrieldenobrega

    Жыл бұрын

    @Shay Treadwell Yes, I did. It was mostly a lot of different examples.

  • @alfianabdulhalin1873

    @alfianabdulhalin1873

    Жыл бұрын

    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!

  • @AshwiniBhaskarPurple
    @AshwiniBhaskarPurple5 жыл бұрын

    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.

  • @mouliballanki5818

    @mouliballanki5818

    4 жыл бұрын

    lol i know it

  • @amjadotibi569

    @amjadotibi569

    4 жыл бұрын

    can I ask you how ? how it is will know to compare the address with out I say "next"

  • @giveaway4002

    @giveaway4002

    4 жыл бұрын

    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.

  • @dinkarinjosh

    @dinkarinjosh

    4 жыл бұрын

    @@giveaway4002 Well, he sort of the used the same logic when he wrote, if(head == null).

  • @vardaanpruthi9890

    @vardaanpruthi9890

    4 жыл бұрын

    or a do-while loop maybe ?

  • @LazizbekYusupov92
    @LazizbekYusupov922 жыл бұрын

    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!

  • @kobracommander2128
    @kobracommander21286 жыл бұрын

    I like how you explain the classes to be used. Great Work!

  • @ElevateWithMiranda
    @ElevateWithMiranda4 жыл бұрын

    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

  • @dannywithnuggets
    @dannywithnuggets3 жыл бұрын

    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!

  • @CarlSaptarshi
    @CarlSaptarshi3 жыл бұрын

    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!

  • @jaredcrebo5426
    @jaredcrebo54265 жыл бұрын

    This is the best explanation I have gotten for linked lists. I can finally finish my project! Thank you so much.

  • @abebe7017
    @abebe70175 жыл бұрын

    concise yet informative.Keep going man! Thank you very much.

  • @sash2686
    @sash26864 жыл бұрын

    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!

  • @coderbuddy3875
    @coderbuddy38754 жыл бұрын

    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 ,!!!

  • @rizwan5740
    @rizwan57405 жыл бұрын

    This is quite possibly the best elaboration to the linked list data structure I have even seen. Thank you Telusko.

  • @swathikak9433
    @swathikak94334 жыл бұрын

    Only after watching ur video I got clear idea in list thnks a lot sir.. 👍

  • @akshaypandey4904
    @akshaypandey49046 жыл бұрын

    Sir ,for traverse the node u can check condition as while(node!=null) for reducing the last line SOP(node.data).

  • @prempresents8776

    @prempresents8776

    9 ай бұрын

    Crct

  • @nord_9586
    @nord_95864 жыл бұрын

    Thank you! Excellent work! Really the best way of explaining this on the internet. It helps a lot for me! Keep it up!

  • @yontenloday6128
    @yontenloday61284 жыл бұрын

    Thank You so much Navin sir!! It was uploaded way long back but your tutorials are inseparable!!

  • @coolpopk
    @coolpopk4 жыл бұрын

    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!

  • @fatih12butun84
    @fatih12butun845 жыл бұрын

    sir, you are amazing. i try yo understand this topic for about 3 weeks. now i understood thank you so much

  • @Manu-wb2uv
    @Manu-wb2uv4 жыл бұрын

    Wow. Finally I understood. Clear and concise. Thank you!

  • @martinlutherbironga5695
    @martinlutherbironga56953 жыл бұрын

    Telusko I love your videos, you are talented in teaching, this is really a great blessing. You are great man

  • @avinashmk1465
    @avinashmk1465 Жыл бұрын

    The best explanation ever for LinkedList..... I have seen so many videos of others but couldn’t understand anything...Thank you 🙏🏻

  • @skirfan9908
    @skirfan99083 жыл бұрын

    Whole heartedly thank you 🎉.The final part debugging is the part where we fetch everything...

  • @fanindhrathirunagaru2667
    @fanindhrathirunagaru26674 жыл бұрын

    I understood the concept very well. Thank you sir for explaining in such a nice way.

  • @punitdwivedi7232
    @punitdwivedi72326 жыл бұрын

    Amazing explanation sir i have watched many videos about how to implement linkedList in java but here i understood.

  • @AMPTechGrade
    @AMPTechGrade5 жыл бұрын

    of all the videos, I think this one helped me understand linkedlist the best. Thank you so much my friend.

  • @elimyu
    @elimyu3 жыл бұрын

    Thanks for the extremely detailed explanation! This video was very helpful to see how linked lists are traversed :)

  • @ArjunSingh-qt5jn
    @ArjunSingh-qt5jn Жыл бұрын

    after watching it many times, finally I got to understood Linked List, thank you :D

  • @salomonmetre2117
    @salomonmetre21173 жыл бұрын

    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.

  • @flying_Color
    @flying_Color4 жыл бұрын

    Thank you, I have learned a lot.

  • @saadmanahmed860
    @saadmanahmed8605 жыл бұрын

    iconoclastic lecture..sir..aapka tutorial se hi meri college study kat rahi hain.. thank u sir

  • @koffee8653
    @koffee86535 жыл бұрын

    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.

  • @zaiab6754
    @zaiab67545 жыл бұрын

    Sir, you explain so well, thank you so much for your help, honestly! Happy New Year

  • @sumrjd
    @sumrjd6 жыл бұрын

    from Saudi , awesome explanation he got me to the root and basic where these next , and head are doing , on simple word their job are to locate the tail of node they are chasing the null so they can tell us if we have one node or more !

  • @narenderkaler1794
    @narenderkaler17944 жыл бұрын

    Thank you(*5) so much was trying to solve it from 3 days.

  • @purodhachanuthika5898
    @purodhachanuthika58983 жыл бұрын

    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

  • @happynewyear6123
    @happynewyear61234 жыл бұрын

    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 :)

  • @dragnar4743
    @dragnar4743 Жыл бұрын

    👍👍👍 not only explained the code properly step-by-step, but also explained it using debugger along with diagram. 💛💛

  • @zihengshi1926
    @zihengshi19265 жыл бұрын

    best tutorial for Linklist!!, thanks so much

  • @tarunmathur7797
    @tarunmathur77974 жыл бұрын

    Thanks for the debug part, it helped a lot

  • @salwas.alsubhi7013
    @salwas.alsubhi70135 жыл бұрын

    this is the best video explained Linked List .. thank you so much

  • @kanchapaudukumbura7991
    @kanchapaudukumbura79913 жыл бұрын

    Good explanation.I watched this 4 times,finally I understood 100%

  • @fahmifarhat7900
    @fahmifarhat79003 жыл бұрын

    Thank you so much ! This is the best turorial to see how LinkedList has been implemented in Java.

  • @HugoAyala1983
    @HugoAyala19834 жыл бұрын

    Very clear and concise explanation, just what I was looking for...subscribed!!!

  • @kalaivanib9555
    @kalaivanib9555 Жыл бұрын

    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.

  • @manikanthreddy4349
    @manikanthreddy43494 жыл бұрын

    I really appreciate you doing this. Many thanks!

  • @ezelpayrktar7381
    @ezelpayrktar73814 жыл бұрын

    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

  • @bilalshah6561
    @bilalshah65613 жыл бұрын

    It was a amazing experience to learn it... Thank u sir♥️

  • @ankurtyagi6172
    @ankurtyagi61724 жыл бұрын

    Love the way u explain.. clears the concept

  • @lucashornung392
    @lucashornung3925 жыл бұрын

    Absolutely fantastic!

  • @deli5777
    @deli57772 жыл бұрын

    Yes, very helpful. I couldn't have gotten through my assignments otherwise. thanks

  • @rohannegi788
    @rohannegi7883 жыл бұрын

    this is probably the best way someone on the internet has explained gr8 job sir

  • @gloryswarupa7650
    @gloryswarupa76505 жыл бұрын

    Really helpful thank you sir

  • @sheerazahmed9980
    @sheerazahmed99803 жыл бұрын

    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.

  • @andretheruler714
    @andretheruler7143 жыл бұрын

    you were right i had to watch it multiple times to understand it, but thank you for uploading this video

  • @fcbmahmood9515
    @fcbmahmood95155 жыл бұрын

    Thank you very much, this was really helpful.

  • @vinaysinghjadon1959
    @vinaysinghjadon19594 жыл бұрын

    Thanks for the video it is awesome and explain linkedlist in a perfect way.

  • @rohanjaiswal64
    @rohanjaiswal643 жыл бұрын

    THANK YOU SO MUCH FOR THIS , IT MADE ME CLEAR MY BASICS

  • @ManojKumar-rs2ps
    @ManojKumar-rs2ps4 жыл бұрын

    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.

  • @anujsinghsomvanshi3385
    @anujsinghsomvanshi33855 жыл бұрын

    Thank you so much, sir...!! And I get an idea to implement a linked list program in java.

  • @publicvoiceraja2974
    @publicvoiceraja2974Ай бұрын

    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...

  • @xsh8432
    @xsh84323 жыл бұрын

    18:00 - insted of printing last node manually we can replace while loop condition with (node != null),. It will print last node automatically.

  • @Cringy69

    @Cringy69

    2 жыл бұрын

    oo wow....thanks bro....😊😊😊

  • @saikasyapdamerla7550
    @saikasyapdamerla75505 жыл бұрын

    beautiful explanation!!! kudos....

  • @kanchapagimhara3163
    @kanchapagimhara31633 жыл бұрын

    I watch this video morethan 3 times .finally I got it.Thank you very much

  • @winlox925
    @winlox9254 жыл бұрын

    Best tutorial so far , i have encountered so many tutorial , and this is the best!

  • @digvijayyamagekar4300
    @digvijayyamagekar43002 жыл бұрын

    thank you very much for such a detailed explanation of node

  • @usmanaaka9316
    @usmanaaka93164 жыл бұрын

    It is really helpful. Thank You Sir

  • @demdimi9316
    @demdimi93164 жыл бұрын

    Great video man, I implemented it by myself thnx to your video. Will watch the other parts too later on.

  • @shadabmalikshah7545
    @shadabmalikshah75452 жыл бұрын

    Dear Naveen , why did you stop this amazing, wonderful series if possible please give us full dsa course in one video like core java,spring,spring boot,rest,hibernate..... And much more......I am grateful for all that yoy provide....stay safe stay blessed, stay being alien

  • @user-ei3ng5kt4n
    @user-ei3ng5kt4n3 күн бұрын

    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

  • @abdullahsaeed9987
    @abdullahsaeed99876 жыл бұрын

    Great explanation Step by step Really nice work

  • @sufyanbhakshey3550
    @sufyanbhakshey35502 жыл бұрын

    Sir thank you so much for clearing my all doubt's. This video is helpful for me. Very simle and clear explanation.

  • @mrinmayrajbongshi7824
    @mrinmayrajbongshi78243 жыл бұрын

    That might be best way someone explain the concept .thank you

  • @mformobileapps
    @mformobileapps4 жыл бұрын

    navin sir you are just awesome...Thanks a lot sir for the ossssmm tutorial series.

  • @AsifWazirBaltistani
    @AsifWazirBaltistani3 жыл бұрын

    Sir, you explain so well, thank you so much for your help

  • @rajasekar4853
    @rajasekar48536 жыл бұрын

    Thanks sir it's clear and give more important to diagrams

  • @somxai4570
    @somxai45702 жыл бұрын

    thanks this video made my 2 week for learning how to implement the LinkedList in to just 1 hour

  • @anchitbhushan6172
    @anchitbhushan61725 жыл бұрын

    i tried using the insertAt() using while loop and it also worked fine

  • @altechy7304
    @altechy73043 жыл бұрын

    Very helpful after 4 yrs... Thank you

  • @liltrix3006
    @liltrix30063 жыл бұрын

    Way better than my professor. Thank you so much for this

  • @manzero134gd
    @manzero134gd4 жыл бұрын

    India numba wan Thank you guys for all these tutorials. From Mathematics to Programming, ya'll are there to save the day.

  • @MinaAkbari-kq9rz
    @MinaAkbari-kq9rz6 ай бұрын

    The best video on Linked Lists... Thank you so much...

  • @NirajKumar_2651
    @NirajKumar_2651 Жыл бұрын

    The way you explain things is simply Awesome!

  • @truongdo510
    @truongdo510 Жыл бұрын

    incredibly explicit explanation sir. thank you!

  • @adammenard3986
    @adammenard39865 жыл бұрын

    Great video, had to watch twice but i have it now. Thank you.

  • @selvasella70
    @selvasella703 жыл бұрын

    Thank you so much bro... I saw lots of videos but ur the best...

  • @anuragbhattacharjee2708
    @anuragbhattacharjee27085 жыл бұрын

    Sir you are perfect.. Thankyou.. subscribed

  • @Waaade1
    @Waaade14 жыл бұрын

    gorgeous explanation !

  • @alisa_b
    @alisa_b6 жыл бұрын

    awesome video

  • @Lionelmessi-zp9vt
    @Lionelmessi-zp9vt2 жыл бұрын

    crystal clear explanation,kudos sir

  • @hamidali467
    @hamidali4672 жыл бұрын

    Thank you so much I have understand this topic clearly your method is so good

  • @lamvo21
    @lamvo213 жыл бұрын

    now i understand how oop concept works in building a data structure thanks to u. Keep up the good work!

  • @davidwhitecross1021
    @davidwhitecross10213 жыл бұрын

    this is an incredible video Navid! absolute legend

  • @kbhardwaj1989
    @kbhardwaj19894 жыл бұрын

    superb explanation. Thank you sir.

  • @kaigelbard8683
    @kaigelbard86833 жыл бұрын

    bro ive been sweating so long trying to figure out my hw, that you so much fo your help

  • @Olympusmons9
    @Olympusmons93 жыл бұрын

    for every IT pblm there is a solution reference called telusko thanks buddy....

  • 5 жыл бұрын

    Wow! Respect, now it is soooo simple! :D

  • @Superman20000
    @Superman200002 жыл бұрын

    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!..

Келесі