14.5 LinkedList vs ArrayList in Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 258

  • @iskandarzakirov230
    @iskandarzakirov230 4 ปีที่แล้ว +14

    What a wonderful explanation. No time wasting, no bla-bla. Everything is explained in easy and understandable way. And what I love most is you guys use not only screen sharing but whiteboard too. Thanks a lot!

  • @jurispuneiko2933
    @jurispuneiko2933 7 ปีที่แล้ว +15

    When I tried to understand this linkedList from all other tutorial videos. It makes me nervous. I can't get it. Then I watched this video. It's saved my day. Thank you. You're super. Well explained.

  • @wasimhakam4160
    @wasimhakam4160 8 ปีที่แล้ว +127

    You are incredibly smart in teaching this material, thanks a lot.

  • @samueladugyimah493
    @samueladugyimah493 6 ปีที่แล้ว +16

    I am from Ghana and I love your presentations. Thumbs up

  • @shifoalukkajoshy5868
    @shifoalukkajoshy5868 2 ปีที่แล้ว +25

    ArrayList is used for storing and accessing data, and LinkedList to manipulate data.😊

  • @dzulanimashau2781
    @dzulanimashau2781 3 ปีที่แล้ว +1

    side note : i now Understand GET and SET soo much better after watching this. Thank you so much. this content is so rich.

  • @guitarman813
    @guitarman813 5 ปีที่แล้ว +6

    Such clear and concise explanations of the two data structures overall. Very good video!

  • @abhishekgharjale3486
    @abhishekgharjale3486 4 ปีที่แล้ว +1

    Sir I never joined any java coaching but by seeing your video I cracked my technical interview,
    Thank you sir

  • @health.upgradedbyscience.7309
    @health.upgradedbyscience.7309 2 ปีที่แล้ว +2

    Your explanations are just great, thank you!! And your whiteboard drawings are a really helpful part of it - i heard about the use cases of both lists before but was not able to memorize .. but now i have a whitboard drawing picture in my head that will stay! 😁

  • @PotatoPnut
    @PotatoPnut 7 ปีที่แล้ว +1

    Let me say, all of your videos have been super helpful. Thank you for taking the time to post them. They are appreciated.

  • @jagannathaks7389
    @jagannathaks7389 5 ปีที่แล้ว +22

    Java was developed by sun microsystem. Later in 2010 java was purchased by Oracle. Now java is Oracle product

  • @TradeWithSrijan
    @TradeWithSrijan 3 ปีที่แล้ว +2

    You are the best sir !!! You explained the main point or we can say main difference between linkedlist and arraylist. It became easy to guess where to use them thanks a lot sir

  • @alishachaudhary4854
    @alishachaudhary4854 6 ปีที่แล้ว +4

    omg your videos make it so much easier to understand everything! thank you, for saving me!!

  • @jagdishghimire6172
    @jagdishghimire6172 7 ปีที่แล้ว +2

    Amazing Explanation. Better than anyone else. thank you so much.

  • @ashfaqqureshi43275
    @ashfaqqureshi43275 ปีที่แล้ว

    Thank you sir for clearing concepts. 🔥🔥🔥🔥
    Java belongs to Oracle Corporation.

  • @aswinloganathan
    @aswinloganathan 4 ปีที่แล้ว +1

    such a clean explanation for linkedlist and arrarlist. thanks for sharing your knowledge

  • @SaiOneManArmy
    @SaiOneManArmy 2 ปีที่แล้ว

    Woww!! Cleared my doubts, Thank you man!

  • @alexandrutudosan3319
    @alexandrutudosan3319 4 ปีที่แล้ว +1

    best explanation that I have ever heard... really good job!!!

  • @fahadassiry224
    @fahadassiry224 11 หลายเดือนก่อน +1

    i'm from saudi arabia.. thank you so much, btw we have much indian teachers in my college

  • @travelnlearn
    @travelnlearn 2 ปีที่แล้ว +1

    Thank You Sir for this awesome and genuine content.
    This q looked difficult to me before but now its a piece of cake for me.
    All thanks to you Sir, May GBU with lots of love long life success happiness and enjoyment
    Thanks a lot again
    Oracle is the owner of java and in starting sun microsystem.

  • @adefemie.kolawole9336
    @adefemie.kolawole9336 7 ปีที่แล้ว +10

    Greatest virtual teacher i have. Could you also do a little bit on O complexity especially the mathematical aspect of it . E.g O of n, n^2, x^n, nlog n and so on.Thanks a lot sir.

    • @maulikdhaduk7509
      @maulikdhaduk7509 6 ปีที่แล้ว

      Adefemi E. Kolawole how underground program complex city..
      Please help me

  • @Unkown5880
    @Unkown5880 3 ปีที่แล้ว +1

    Thank you so much for help sir , you can't imagine how big is your impact ❤🙏🏽

  • @nirajagrawal4486
    @nirajagrawal4486 3 ปีที่แล้ว

    the best tutorial you will get on linked list vs array list

  • @Goodtime817
    @Goodtime817 8 ปีที่แล้ว +2

    Thank you Navin Reddy its really right explanation

  • @smanap3859
    @smanap3859 7 ปีที่แล้ว

    All your videos are quick reference.. I can remember quite a lot once I listen to your explanation.. thanks

  • @Dhaval_29
    @Dhaval_29 ปีที่แล้ว

    thank you bhide uncle your videos are lifesaver!

  • @noorulameen1255
    @noorulameen1255 ปีที่แล้ว

    Perfect explanation 😁

  • @jaserq
    @jaserq 3 ปีที่แล้ว

    You are born for this job

  • @kuldippatil2006
    @kuldippatil2006 5 ปีที่แล้ว +4

    Seriously loved your all content..
    Explanation is on point 👌

  • @olipirard
    @olipirard 6 ปีที่แล้ว

    Thank you very much for this lecture.
    I don't have big skills in programming and this video opened my mind on this topic.

  • @oualidlaib5965
    @oualidlaib5965 2 ปีที่แล้ว

    Thank you for the demonstration .

  • @iamnaing
    @iamnaing 2 ปีที่แล้ว

    your explanation is on point, thank you for biggest help

  • @NoOneIsHereRightNow
    @NoOneIsHereRightNow 4 ปีที่แล้ว +2

    Telusko you are the best!!!

  • @wasiqkhan7529
    @wasiqkhan7529 ปีที่แล้ว

    great job your explaination is awesome java belongs to I don't know

  • @sofiullah-iqbal-kiron
    @sofiullah-iqbal-kiron 4 ปีที่แล้ว +1

    Navin Reddy sir is great.

  • @hamud323
    @hamud323 ปีที่แล้ว

    Beautiful video

  • @ExploringNew676
    @ExploringNew676 ปีที่แล้ว

    Nice explanation sir

  • @jeerawanpk
    @jeerawanpk 3 ปีที่แล้ว

    wow, very clear explanation, thank you so much

  • @vladanulardzic5859
    @vladanulardzic5859 5 ปีที่แล้ว +1

    Well done ! Keep on !

  • @vik6330
    @vik6330 5 ปีที่แล้ว +1

    You did great explanation, god bless you

  • @adnanfaisal1085
    @adnanfaisal1085 4 ปีที่แล้ว

    absolutely brilliant narration

  • @sriharirajrjs6565
    @sriharirajrjs6565 6 หลายเดือนก่อน

    We can use linkedlist while getting data and array list while process the data.. so we need to make better arrangements to interchange types extremely fast

  • @bivosOnEarth
    @bivosOnEarth 7 ปีที่แล้ว

    very good tutorial. very clear and well explained. thank you for this.

  • @chanchan6312
    @chanchan6312 3 ปีที่แล้ว

    thank you for saving my life before the test

  • @kavithags1384
    @kavithags1384 7 ปีที่แล้ว

    Good 👍👍👍👍👍

  • @sridharg3043
    @sridharg3043 5 ปีที่แล้ว

    At 5:01, 'Since Linked List follows the concept of Double Linked List' seems totally inappropriate. Linked List is a self-referential structure being singly or doubly linked. Insertion or Deletion of an element in between is possible in both singly & doubly linked list.

    • @praveenmail2him
      @praveenmail2him 5 ปีที่แล้ว

      Yes, rightly remarked. His explanation was quite contrary.

  • @idhamhafidz
    @idhamhafidz 6 ปีที่แล้ว

    you are a very good teacher. May Allah reward you.

  • @samreens819
    @samreens819 5 ปีที่แล้ว

    Thank you so much for your videos sir. They were very helpful 👍

  • @keshavabanda3420
    @keshavabanda3420 2 ปีที่แล้ว

    Your way of teaching is excellent. Also i have enrolled your course in inuron.
    I have one question is Data structures is covered in Java Full Stack Course Job Guarantee by Inuron. I hope you will give the answer very soon thank you and love you 💞 sir.

  • @cinemawinks1314
    @cinemawinks1314 4 ปีที่แล้ว

    Good job man..keep it up!

  • @ashashu9997
    @ashashu9997 6 ปีที่แล้ว +1

    Sir can u upload a video for upcasting and dow casting
    Clearly like what is upcasting and dow casting
    Why it's need inheritance in between two classes of upcasting and dow casting
    What is actually
    What is the use where we use upload with real time example

  • @Bharadwajav9
    @Bharadwajav9 6 ปีที่แล้ว +31

    java was Devoloped by Sun Company,Later owned by Oracle...

  • @vaazhkaivaazhvadharke8235
    @vaazhkaivaazhvadharke8235 6 ปีที่แล้ว

    You are awesome in teaching

  • @jocinj8811
    @jocinj8811 4 ปีที่แล้ว

    Explanation is on point, thank you.

  • @sai5926
    @sai5926 7 ปีที่แล้ว

    excellent sir really good class about array and linked array list

  • @TheMadara207
    @TheMadara207 4 ปีที่แล้ว

    Amazing explanation, thanks.

  • @Michael-kw6bs
    @Michael-kw6bs 3 ปีที่แล้ว

    Thanks for great explanation :)

  • @abinayajothivel2608
    @abinayajothivel2608 3 ปีที่แล้ว

    Handsoff sir. Oracle owns the java

  • @Vithal_Nivargi
    @Vithal_Nivargi 2 ปีที่แล้ว

    Thanks nice explained

  • @ryanrazer1
    @ryanrazer1 5 ปีที่แล้ว

    Great explanation buddy! thanks!

  • @jagadeeshtummalacharla2981
    @jagadeeshtummalacharla2981 5 ปีที่แล้ว

    You explained the right point. Thanks

  • @Layklant
    @Layklant 7 ปีที่แล้ว

    Very well explained! Thanks sir!

  • @poojaranavare6902
    @poojaranavare6902 4 ปีที่แล้ว

    u are a great sir

  • @gauthambekal235
    @gauthambekal235 6 ปีที่แล้ว +4

    Hello Sir, Just wanted to clarify that from my understanding to inserting an element in a linked list we will have to traverse to that position before adding it. Hence the time taken for insertion on average in linked list is about the same as in array list.

    • @iamdharanidharan
      @iamdharanidharan 3 ปีที่แล้ว +3

      In array list you can access the element on the first operation but then for every other element that follows, you have to follow at least 2 operations (for swapping). Considering arraylist with 10000 elements and if we need to insert to middle we go to middle element in 1 operation, and for the next 5000 elements, we do 2 operations each which totals to 10001 operations. Considering the same scenario with linked list, we go to the middle element with 5000 operations (ele = ele->next) and perform 4 more operations for insertion. Totally 5004 operations. So there is around 50% efficiency when inserting in middle

  • @nimeshpokhrel007
    @nimeshpokhrel007 หลายเดือนก่อน

    Thank you well explained.

  • @suryagodasi3082
    @suryagodasi3082 3 ปีที่แล้ว

    Super Sir...

  • @stefanspinu8784
    @stefanspinu8784 7 ปีที่แล้ว

    very good explanation! Thank you!

  • @sinner1263
    @sinner1263 3 ปีที่แล้ว

    Wow. Useful. From PH 1st year college as BSCS LOL

  • @waqariqbal19
    @waqariqbal19 7 ปีที่แล้ว

    You are doing Great Sir

  • @aalap03
    @aalap03 5 ปีที่แล้ว

    So simply he has described this. Thanks Mr.Reddy.

  • @abhishekgowlikar
    @abhishekgowlikar 5 ปีที่แล้ว

    Good Explanation.

  • @subhrajyotiparida854
    @subhrajyotiparida854 5 ปีที่แล้ว +1

    U are just phenomenal.... You shifted to Hyderabad. Open your institute

  • @almoalmoalmoalmo
    @almoalmoalmoalmo 7 ปีที่แล้ว

    OH MY GOODNESS THANK YOU SO MUCH. DEFINETLY SUBSCRIBING, YOU'RE THE BEST KEEP UP THE GREAT CONTENT!!! :D

  • @jigri_pokhri
    @jigri_pokhri 8 ปีที่แล้ว +1

    Hey buddy, thanks for the tutorial.

  • @YashSingh-ir3ec
    @YashSingh-ir3ec 3 ปีที่แล้ว +1

    It might appear to students that LinkedList doesn't support indexing although he didn't say it.
    The thing is LinkedList implements a List interface so it will support indexing.

  • @dharmarajana3989
    @dharmarajana3989 2 ปีที่แล้ว

    Thanks for the great explanation about insert and remove in the list. Why is the search slow in the linked list?

  • @priyagupta6703
    @priyagupta6703 7 ปีที่แล้ว

    its very easy ans for an interview without any confusion

  • @snehilsinha4689
    @snehilsinha4689 2 ปีที่แล้ว +1

    I am a bit confused regarding the time complexity of insertion which according to you is faster in linkedlist as compared to an arraylist and since TC (insertion) in arraylist is O(N), I assume it is O(1) in linkedlist according to you. But to insert element in between in the linkedlist as well, we will first have to traverse the entire list to that position, only then can we perform our insert operation and hence due to the traversal, shouldn't the TC be O(N) itself which is equivalent to the TC(insertion) in arraylist as well ?

  • @huynguyentien4135
    @huynguyentien4135 6 ปีที่แล้ว

    Good teacher !

  • @harleenkittu
    @harleenkittu 3 ปีที่แล้ว

    public void insertByAge(Person newItem) - the insert method should add the Person object to the
    list such hat the list is ordered according to age (youngest to oldest) -i don't know what am i suppose to do in this method. if youd help me out wid this?

  • @9899013543
    @9899013543 4 ปีที่แล้ว

    Woudn't you have to first traverse to the middle element of the linked list before adding the new node? So won't again that would become a O(n/2) or one can say O(n) only ? Which is what you'd also get in case of arrayList .. just a query?

  • @Und3rDawg
    @Und3rDawg 6 ปีที่แล้ว

    Great explanation. Thanks~

  • @CorDharel
    @CorDharel 5 ปีที่แล้ว

    This is all good but in the end it usually boils down to what you said in the one sentence "now in my project we are only using arralist but... ... " ;-)

  • @com-qt1iv
    @com-qt1iv 5 ปีที่แล้ว

    you are amazing! thanks for the video

  • @phbpattaya
    @phbpattaya 6 ปีที่แล้ว

    great explanation, thanks

  • @nanocarbonx
    @nanocarbonx 8 ปีที่แล้ว

    great explanation, thank you!

  • @mohammedviso2269
    @mohammedviso2269 7 ปีที่แล้ว

    Good Video

  • @imenbrahmi611
    @imenbrahmi611 6 ปีที่แล้ว +2

    thanks a loooot ;;; useful video

  • @hf8056
    @hf8056 7 ปีที่แล้ว

    Very good, thanks

  • @gr3yz3r0
    @gr3yz3r0 8 ปีที่แล้ว

    this is really good. Thanks a lot.

  • @mahendharkhedhar7887
    @mahendharkhedhar7887 6 ปีที่แล้ว

    Awesome sir

  • @fahimn2472
    @fahimn2472 7 ปีที่แล้ว

    Thanks Bruhhh from 100KPlusGroup

  • @dhanalekshmi4097
    @dhanalekshmi4097 6 ปีที่แล้ว +2

    hello naveen,can u make videos about performance tuning in java

  • @annar52
    @annar52 6 ปีที่แล้ว

    thanks for video sir

  • @fahmidhossainSakib
    @fahmidhossainSakib 3 ปีที่แล้ว

    Question : 9:00
    Answer : Oracle Corporation

  • @gauravbhosle281
    @gauravbhosle281 4 ปีที่แล้ว

    I want to take input for arraylist at run time and I don't know that how much entry will user going to give.....
    So I don't know for how much times I have to write .add() function to get the values......
    So what should I do ...to get the unknown numbers of values at run time in array list.

  • @hildah9057
    @hildah9057 5 ปีที่แล้ว

    Thank you so much

  • @warrierathira
    @warrierathira 3 ปีที่แล้ว

    Sir, is there full DS course videos ??
    Can u please show if there

  • @sreenivasbhaskara2692
    @sreenivasbhaskara2692 5 ปีที่แล้ว

    hi sir can you give a brief explanation of all operations and methods that can be used in all the collections please

  • @akshayjori3980
    @akshayjori3980 ปีที่แล้ว +1

    I compared the performance of both ArrayList and LinkedList while inserting new elements at random indices.
    But found that ArrayList is faster.