14.5 LinkedList vs ArrayList in Java

Поделиться
HTML-код
  • Опубликовано: 3 апр 2016
  • What is LinkedList and ArrayList?
    Collection API complete playlist : goo.gl/zjpwWq
    This Video explains the theory of LinkedList and ArrayList of collection. Also the difference between both.
    #linkedlist #arraylist
    Check out our courses:
    Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : bit.ly/java-spring-cloud
    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
    Check out our website: www.telusko.com
    Follow Telusko on Twitter: / navinreddy20
    Follow on Facebook:
    Telusko : / teluskolearnings
    Navin Reddy : / navintelusko
    Follow Navin Reddy on Instagram: / navinreddy20
    Subscribe to our other channel:
    Navin Reddy : / @navinreddy
    Telusko Hindi :
    / @teluskohindi
    Java Tutorial for Beginners : goo.gl/p10QfB
    Scala Tutorials for Java Developers : goo.gl/8H1aE5
    C Tutorial Playlist : goo.gl/8v92pu
    Android Tutorial for Beginners Playlist : goo.gl/MzlIUJ
    XML Tutorial : goo.gl/Eo79do
    Design Patterns in Java : goo.gl/Kd2MWE
    Socket Programming in Java : goo.gl/jlMEbg
    Spring MVC Tutorial : goo.gl/9ubbG2
    OpenShift Tutorial for Beginners : goo.gl/s58BQH
    Spring Framework with Maven : goo.gl/MaEluO
    Sql Tutorial for Beginners : goo.gl/x3PrTg
    String Handling in Java : goo.gl/zUdPwa
    Array in Java : goo.gl/uXTaUy
    Java Servlet : goo.gl/R5nHp8
    Exception Handling in Java : goo.gl/N4NbAW

Комментарии • 256

  • @iskandarzakirov230
    @iskandarzakirov230 4 года назад +12

    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!

  • @shifoalukkajoshy5868
    @shifoalukkajoshy5868 2 года назад +21

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

  • @wasimhakam4160
    @wasimhakam4160 7 лет назад +126

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

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

  • @health.upgradedbyscience.7309
    @health.upgradedbyscience.7309 Год назад +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! 😁

  • @guitarman813
    @guitarman813 4 года назад +6

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

  • @samueladugyimah493
    @samueladugyimah493 5 лет назад +16

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

  • @jurispuneiko2933
    @jurispuneiko2933 6 лет назад +12

    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.

  • @Goodtime817
    @Goodtime817 7 лет назад +2

    Thank you Navin Reddy its really right explanation

  • @smanap3859
    @smanap3859 6 лет назад

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

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

  • @alishachaudhary4854
    @alishachaudhary4854 5 лет назад +4

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

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

  • @jagdishghimire6172
    @jagdishghimire6172 7 лет назад +2

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

  • @jagannathaks7389
    @jagannathaks7389 4 года назад +20

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

  • @alexandrutudosan3319
    @alexandrutudosan3319 4 года назад +1

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

  • @bivosOnEarth
    @bivosOnEarth 6 лет назад

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

  • @aswinloganathan
    @aswinloganathan 4 года назад +1

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

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

  • @Unkown5880
    @Unkown5880 2 года назад +1

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

  • @samreens819
    @samreens819 5 лет назад

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

  • @Layklant
    @Layklant 6 лет назад

    Very well explained! Thanks sir!

  • @nanocarbonx
    @nanocarbonx 7 лет назад

    great explanation, thank you!

  • @jigri_pokhri
    @jigri_pokhri 7 лет назад +1

    Hey buddy, thanks for the tutorial.

  • @stefanspinu8784
    @stefanspinu8784 6 лет назад

    very good explanation! Thank you!

  • @abhishekgharjale3486
    @abhishekgharjale3486 4 года назад +1

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

  • @vladanulardzic5859
    @vladanulardzic5859 5 лет назад +1

    Well done ! Keep on !

  • @almoalmoalmoalmo
    @almoalmoalmoalmo 6 лет назад

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

  • @Und3rDawg
    @Und3rDawg 6 лет назад

    Great explanation. Thanks~

  • @imenbrahmi611
    @imenbrahmi611 5 лет назад +2

    thanks a loooot ;;; useful video

  • @jocinj8811
    @jocinj8811 4 года назад

    Explanation is on point, thank you.

  • @gr3yz3r0
    @gr3yz3r0 7 лет назад

    this is really good. Thanks a lot.

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

  • @com-qt1iv
    @com-qt1iv 5 лет назад

    you are amazing! thanks for the video

  • @phbpattaya
    @phbpattaya 5 лет назад

    great explanation, thanks

  • @kuldippatil2006
    @kuldippatil2006 5 лет назад +4

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

  • @saneern.a6766
    @saneern.a6766 7 лет назад

    Thank you . And there is no practical class found for link list can you please give the link?

  • @jagadeeshtummalacharla2981
    @jagadeeshtummalacharla2981 4 года назад

    You explained the right point. Thanks

  • @sai5926
    @sai5926 6 лет назад

    excellent sir really good class about array and linked array list

  • @vik6330
    @vik6330 5 лет назад +1

    You did great explanation, god bless you

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

  • @priyagupta6703
    @priyagupta6703 6 лет назад

    its very easy ans for an interview without any confusion

  • @dharmarajana3989
    @dharmarajana3989 Год назад

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

  • @jeerawanpk
    @jeerawanpk 3 года назад

    wow, very clear explanation, thank you so much

  • @ryanrazer1
    @ryanrazer1 4 года назад

    Great explanation buddy! thanks!

  • @adnanfaisal1085
    @adnanfaisal1085 4 года назад

    absolutely brilliant narration

  • @oualidlaib5965
    @oualidlaib5965 Год назад

    Thank you for the demonstration .

  • @SaiOneManArmy
    @SaiOneManArmy 2 года назад

    Woww!! Cleared my doubts, Thank you man!

  • @iamnaing
    @iamnaing 2 года назад

    your explanation is on point, thank you for biggest help

  • @waqariqbal19
    @waqariqbal19 7 лет назад

    You are doing Great Sir

  • @TheMadara207
    @TheMadara207 3 года назад

    Amazing explanation, thanks.

  • @cinemawinks1314
    @cinemawinks1314 3 года назад

    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

  • @sohelahmed3889
    @sohelahmed3889 7 лет назад +1

    thank u sir

  • @idhamhafidz
    @idhamhafidz 5 лет назад

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

  • @NoOneIsHereRightNow
    @NoOneIsHereRightNow 4 года назад +2

    Telusko you are the best!!!

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

  • @hf8056
    @hf8056 7 лет назад

    Very good, thanks

  • @mehreganrahmani6618
    @mehreganrahmani6618 6 лет назад +2

    Thank You, That was helpful to me

  • @dhanalekshmi4097
    @dhanalekshmi4097 6 лет назад +2

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

  • @Michael-kw6bs
    @Michael-kw6bs 3 года назад

    Thanks for great explanation :)

  • @Dhaval_29
    @Dhaval_29 10 месяцев назад

    thank you bhide uncle your videos are lifesaver!

  • @MrJonnis13
    @MrJonnis13 8 лет назад

    Thank you Sir

  • @xxtreemtv2404
    @xxtreemtv2404 6 лет назад

    Thank you !

  • @vaazhkaivaazhvadharke8235
    @vaazhkaivaazhvadharke8235 5 лет назад

    You are awesome in teaching

  • @huynguyentien4135
    @huynguyentien4135 6 лет назад

    Good teacher !

  • @sreenivasbhaskara2692
    @sreenivasbhaskara2692 4 года назад

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

  • @abhishekgowlikar
    @abhishekgowlikar 5 лет назад

    Good Explanation.

  • @Arpgupta0
    @Arpgupta0 6 лет назад

    thanks a lot sir

  • @annar52
    @annar52 6 лет назад

    thanks for video sir

  • @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... ... " ;-)

  • @fahadassiry224
    @fahadassiry224 6 месяцев назад +1

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

  • @harleenkittu3459
    @harleenkittu3459 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 3 года назад

    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?

  • @Vithal_Nivargi
    @Vithal_Nivargi 2 года назад

    Thanks nice explained

  • @hildah9057
    @hildah9057 5 лет назад

    Thank you so much

  • @nirajagrawal4486
    @nirajagrawal4486 3 года назад

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

  • @hamud323
    @hamud323 Год назад

    Beautiful video

  • @jaserq
    @jaserq 3 года назад

    You are born for this job

  • @sakshi3192
    @sakshi3192 7 лет назад

    sir i didn't fine the practical for linked list in your channel please send me the link

  • @mahendharkhedhar7887
    @mahendharkhedhar7887 6 лет назад

    Awesome sir

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

  • @ExploringNew676
    @ExploringNew676 Год назад

    Nice explanation sir

  • @suruchigupta6639
    @suruchigupta6639 5 лет назад

    Great!

  • @noorulameen1255
    @noorulameen1255 Год назад

    Perfect explanation 😁

  • @khanhtrinh2944
    @khanhtrinh2944 2 года назад

    thank you very much

  • @sofiullahiqbalkiron6818
    @sofiullahiqbalkiron6818 4 года назад +1

    Navin Reddy sir is great.

  • @balasubramanyam8334
    @balasubramanyam8334 4 года назад

    Hey naveen what if i increase array size beyond 15 its 50% is will be 22.5 at last so....??

  • @einhacker-typ6457
    @einhacker-typ6457 7 лет назад

    Thanks! :)

  • @sriharirajrjs6565
    @sriharirajrjs6565 Месяц назад

    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

  • @wasiqkhan7529
    @wasiqkhan7529 Год назад

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

  • @vicliur2
    @vicliur2 5 лет назад

    THANNK YOU!

  • @poojaranavare6902
    @poojaranavare6902 4 года назад

    u are a great sir

  • @fahimn2472
    @fahimn2472 7 лет назад

    Thanks Bruhhh from 100KPlusGroup

  • @ashokchilakala2879
    @ashokchilakala2879 3 года назад

    sir will u please provide the practical session videos

  • @warrierathira
    @warrierathira 3 года назад

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

  • @kingabhi5507
    @kingabhi5507 4 года назад

    iIn the starting is is devloped in Sun Mocrosystem but leter is accuored by the Oracle corprotion

  • @hayatt143
    @hayatt143 7 лет назад

    is linked list dynamic in nature ?Can the size be increased dynamically?

    • @rsblackbuddy11
      @rsblackbuddy11 6 лет назад

      Sarwar Hayatt yes linked list is dynamic in nature

  • @gauthambekal235
    @gauthambekal235 5 лет назад +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

  • @suryagodasi3082
    @suryagodasi3082 3 года назад

    Super Sir...