Introduction to Linked Lists, Arrays vs Linked Lists, Advantages/Disadvantages - C++ Data Structures

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

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

  • @CodeBeauty
    @CodeBeauty  3 года назад +48

    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.

    • @noahn12
      @noahn12 3 года назад +1

      Could you make a Vector Video? By the way i like you soooooo much :)))))))))

  • @ShanesawMan
    @ShanesawMan 3 года назад +60

    I struggle with my professor's way of explaining this. You did it in just 24 mins. Thank you.

    • @CodeBeauty
      @CodeBeauty  3 года назад +2

      Happy to hear that ☺️🤗🥰

  • @soniusMu
    @soniusMu Год назад +19

    I am a college student who is watching in Korea
    There is no such high quality C++ video in Korea
    Thank you for the good video!!

  • @Tylasian
    @Tylasian 3 года назад +152

    Learned more in 24 mins than my professor in 2 hours. Thank you!

    • @JonathanReyes-nb8ws
      @JonathanReyes-nb8ws Год назад

      Same

    • @adamburri1088
      @adamburri1088 Год назад +3

      I wholeheartedly agree, I'm taking data structures and algorithms this semester, and what the prof took to explain in a week, 23 mins got me more!

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

      @@adamburri1088same lol

  • @AmbientEscapeSphere
    @AmbientEscapeSphere 3 года назад +74

    You're the only one that finally made this understandable to me. Thank you so much plz continue this series !! I would like to see the series upgrade to the intermediate level. Thank you again, Saldina!

  • @artisticnights6222
    @artisticnights6222 3 года назад +6

    You are a life saver I have taken data structures three times and never understood it especially linked lists and you made it so simple THANK YOU T--T

  • @learntoearn6612
    @learntoearn6612 3 года назад +2

    video posted on 24/Feb/2021, Today 8/Dec/2021 still helpful and will continues being helpful. *Thanks Saldina*

  • @Dronebotworkshop
    @Dronebotworkshop 4 года назад +81

    I recently discovered your channel and I just have to say that you are doing an amazing job with these videos. You have a great teaching style and I love the way you use practical examples to illustrate concepts.
    I use C++ when working with microcontrollers like the Arduino, and while there are a few syntax differences it is very similar, so your videos have been a great resource.
    I know you get many requests for other languages as well, and as a RUclipsr myself I understand that it's impossible to entertain them all. If I were to make a request I would love to see you do a series on Python after you conclude the C++ tutorial series. So you can add that to the list!
    I wish you every success with your RUclips channel.

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

      Thank you so much for that comment! I really put a lot of work into these videos, especially to overcome the foreign language obstacle, so I appreciate very much the support that I get.
      I have a lot of TODO videos, and I also have to be honest and say that Pythons is not my strongest language.
      I was planning to focus on C++, C#, and JS mostly because those are the languages that I use the most, but I don't have any fixed plan for the future. Are you interested in those maybe?
      I wish you the best of luck with Arduino programming and a lot of success with your channel as well. 🤞🧡🧡

    • @Dronebotworkshop
      @Dronebotworkshop 4 года назад +9

      @@CodeBeauty Well I would say that you have definitely overcome the foreign language obstacle, your English is excellent.
      I certainly will be interested in seeing more of your C++ videos and look forward to the JavaScript ones, I have familiarity with both languages but it has been a few years since I used JS, so I'm sure I'll learn something.
      Keep up the great work Saldina, I predict that you'll soon have a RUclips Silver Play Button to hang on your wall!

    • @DaleDix
      @DaleDix 3 года назад +4

      Mr DroneBot in the house!

    • @yohansenurga4044
      @yohansenurga4044 3 года назад +1

      @@CodeBeauty Guess what your English is more understandable than (no offense) other programming RUclipsrs. I really appreciate your effort and we will continue supporting you.

    • @nunorodrigues5628
      @nunorodrigues5628 3 года назад +1

      @@CodeBeauty this is the best best crossover of 2021!

  • @garcj1499
    @garcj1499 4 года назад +5

    I decided to watch the entire video at 1am for fun instead of going to sleep. Linked lists have never been this clear to me until now, thanks to you!

  • @Neiltxu
    @Neiltxu 2 года назад +8

    your videos are insane, you made me feel that c++ wasn´t as difficult as it was being for me at university, thanks a lot and best wishes from Spain.

  • @eminbaybarstimurstudent3802
    @eminbaybarstimurstudent3802 3 года назад +2

    void printList(Node *head)
    {

    if (head->Next != nullptr)
    {
    cout Value Next);
    }
    else {
    cout Value

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

    Finally after trying for almost a week and surfing dont know how many channels i found this channel who make me understand how to create a linked list in minutes at once
    I cant thank you enough literallyy tears in eyes .. Thank you you are realky doing a great work each concept is clear avout creating a linked list .
    Thank you so much

  • @milkamilkica1935
    @milkamilkica1935 4 года назад +17

    Love how you explain everything so simple and easy!

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

      Happy to hear that you learn from videos! 🤞🤗🧡

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

      @@CodeBeauty I second Milka's comment! I've spent a ridiculous amount of time (hours) reading and rereading my text book to understand linked lists and you very eloquently showed me in a matter of minutes. Thank you and keep up the great work! I will be following you for more C++ videos as this has been a trouble language for me to pick up. Best of Luck!

  • @tanhnguyen2025
    @tanhnguyen2025 Год назад +1

    truthfully speaking, you're dropdead gorgeous from my point of view. Thank you madam for dedicating your time to making this video that is perfect to the most minute detail!

  • @joehibbler7120
    @joehibbler7120 3 года назад +2

    My last year until I graduate BS computer Science ... Thank you so much your lessons are great.

  • @FareedAbbas-q3c
    @FareedAbbas-q3c 3 месяца назад

    I’ve been watching your videos for the past 3 years, and I want to thank you for the incredible content! Your teaching methods are outstanding, making complex topics much easier to grasp. Your channel has been a tremendous help for developers like me. Keep up the fantastic work!

  • @vedkorla300
    @vedkorla300 3 года назад +3

    Thank you so much, I didn't have much knowledge about pointers to begin with, yet your explanation was so nice that I didn't need to revisit it at all.

  • @Michael-tf3hj
    @Michael-tf3hj 2 года назад +1

    By watching this video I have contemplated not only the beauty of code, but also the beauty of programmers. Thanks a lot for that video! Seems to be one of the most beneficial.

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

    By far the best video I've seen on link lists and the implementation of them in C++. Oh my god so many videos go into understanding what they are, but never teach what an implementation of them look like especially the syntax when being introduced to new syntax like -> which I wasn't aware of, or how you need to link your link list otherwise it's no longer a link list. This is a lifesaver and doesn't start with some syntax that no one has ever seen before and keeps it basic. If you go into anything a bit weird its explained. Thank you so much for the video it was super helpful in understanding what implementation of a link list looks like in C++.

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

    Thank You
    This video helped me in understanding concept of the linked lists,
    I have watched many videos but this video makes everything clear.

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

    I caught the beginning but was distracted through the middle. I caught the question, my answer was "It needs the Head. It requires a basis, a point of reference from which to start".
    I start my degree next week, and even though I have no previous experience, when you said the answer was the same as mine I cannot express the joy I felt.
    Thanks so much for taking the time to make videos like this. It may seem like "revision" to someone familiar, but to someone like me (and your recommendations on learning Java at the start), I don't know it's hard to explain.
    But you're so damn attractive I can't concentrate lol and it's mostly why I was walking around listening half the time. I can never look at Batman the same way again. However, I'm sure I'll manage :)
    In all serious, you're wonderful. You and many others like you ( e.g. freecodecamp) have really opened my eyes to a wonderful new world for me to explore. I'm so excited!
    Please, don't stop. Any of you.

  • @cryptobaduymus
    @cryptobaduymus Год назад +1

    I was really tired all unnecessary fency computer science terminological words this video keeps really simple so easy to understand thank you Code Beauty.

  • @rayanalasow7035
    @rayanalasow7035 Год назад +2

    Loveeeeee the explaination. I feel like you do a good job in explaining the things that sometimes are pushed under the rug and that is sometimes the difference between feeling completely stuck vs finally understanding an otherwise simple concept.

  • @vangezto
    @vangezto 2 года назад +3

    Whats the difference between new node(); and new node without () ?

  • @Nikhil-vo4qu
    @Nikhil-vo4qu 2 года назад +1

    Thank you so much di ! this helped me a lot !!! May the force be with you !

  • @cranixstein6207
    @cranixstein6207 2 года назад +3

    Thank you very very much Saldina, your videos on C++ are so precious and understandable.

  • @yohansenurga4044
    @yohansenurga4044 3 года назад +1

    You are the best. You really explain very well wow. My professor took two classes which mean 150 minutes to teach about the Linked list but still, I didn't get it but now in less than 24 minutes I learned a lot from you. Thank you.

  • @Mike-lr2bc
    @Mike-lr2bc 2 года назад

    This video made my life so much easier. I've been struggling in my data structures class for 10 plus weeks now, professor was confusing to listen to, tutor was confusing to listen to but this video made everything clear

  • @abdel-rahmansayed6384
    @abdel-rahmansayed6384 4 года назад +12

    I really appreciate your work, you helped me understands this particular topic which was both easy and confusing at the same time.
    Keep it up💪🏻

  • @tuazulyrojoeljean
    @tuazulyrojoeljean 2 месяца назад

    Thank you teacher Saldina, your explanations are always as clear as pure water!

  • @MGcoria97
    @MGcoria97 2 месяца назад

    This is the best coding channel by far. I am surviving in computer science thanks to you.

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

    you are the only one who is helping me to be a c++ advanced learner

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

    as a long-ago C/C++ dev (c. 1998) and a current Kotlin Java dev, this is relevant to my work and interests!

  • @sebastianionel5134
    @sebastianionel5134 3 года назад +12

    If people don't want to use public variables in a class (not pretty cool to use public variables in classes and not so great to practice) they can check this code right here. I did some OOP things:
    class Nod { // Nod = Node in my language
    int valoare; // valoare = value in my language
    Nod* next;
    public:
    // I did a constructor also to avoid making a very big column of initializations. If I don't pass the next Node, then the default value is a nullptr;
    Nod(int valoare, Nod *next = nullptr) : valoare(valoare), next(next) {}
    // Here are some getters and setters that can access the private variables.
    void setValoare(int valoare) {
    Nod::valoare = valoare;
    }
    void setNext(Nod *next) {
    Nod::next = next;
    }
    int getValoare() const {
    return valoare;
    }
    Nod *getNext() const {
    return next;
    }
    };
    void printList(Nod* n) {
    while(n){
    std::coutgetValoare() getNext(); // This is a pointer so that's why you can do this.
    }
    }
    int main() {
    // linked list example with 4 elements:
    Nod* head = new Nod(1);
    Nod* second = new Nod(2);
    Nod* third = new Nod(3);
    Nod* last = new Nod(4);
    // here I was pretty lazy to implement the pointer in constructor thing (the stuff you need to pass as a parameter to the construct to point to the next node) so I did this:
    head->setNext(second);
    second->setNext(third);
    third->setNext(last);
    printList(head);
    // std::cout

  • @krishaelle8309
    @krishaelle8309 2 года назад +2

    please put up more videos on data structures and algorithms in c++

  • @LindaKanjanabout-j8b
    @LindaKanjanabout-j8b Год назад

    I'd rather pay tuition to you than 95% of my CS professors. Thank you so much!!! Will be signing up for your Coding subscription!

  • @bhargavsolanki6386
    @bhargavsolanki6386 4 года назад +10

    Awesome ma'am, lots of love from India😍

    • @CodeBeauty
      @CodeBeauty  4 года назад +4

      Thank you! Lots of love for 🇮🇳🧡🤍💚

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

    I was having doubts with this very topic. Nice video!

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

    Amazin job in such a way that, you train viewers from basic to advance without missing any aspect.

  • @sherylli4161
    @sherylli4161 3 года назад +1

    wow!! I just discovered your channel- i've always struggled to understand linked lists but in this video, everything just clicked. THANK YOU SO MUCH

  • @bubble_gum_witch
    @bubble_gum_witch 8 месяцев назад +2

    Thank you so much, your way of explaining is so clear and understandable. I really needed this video!!

    • @CodeBeauty
      @CodeBeauty  8 месяцев назад

      You're welcome 🤗🥰

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

    Finally understood after going through many videos. Thank you

  • @YashTiwari.official
    @YashTiwari.official 2 года назад

    Best mentor award goes to saldena mam.. she is really a excellent tutor ❤️🙏
    Mam i love your teaching skills .....

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

    Wow, you explain better than my teacher! Thank you!!

  • @ArslanBajwaOfficial
    @ArslanBajwaOfficial 2 года назад +2

    Your teaching style is very good the best teacher ever..❣

  • @potatoitis3326
    @potatoitis3326 3 года назад +2

    Thank you so much!!!!! This video was so helpful in helping me study for finals as well as understanding my data structures class. You made this concept so much easier to understand than my professor.

  • @painsme2
    @painsme2 3 года назад +2

    These are really informative video's. I appreciate you taken the time to do so. Thank You and Cheers!

  • @anuragvashishtha3841
    @anuragvashishtha3841 3 года назад +2

    Clear and Concise explanation!
    Backed with a lot of Well Supported, Real world Examples.
    Learning C++ through your channel is so much of joy!!

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

    I found it really hard to understand the concept of linked lists but you made it seem very easy. Thanks!

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

    Its incredible how much better you explain these things than my college professors.
    Its also awesome to have finally found a female coder on here that explains things in the way that I like! Sick of just hearing men 24/7 in this field and being one of the few girls in my classes. haha!

  • @salmale3783
    @salmale3783 3 года назад +3

    women are very caring and have a very good way of explaining things ♥️♥️I'm proud of you

    • @CodeBeauty
      @CodeBeauty  3 года назад +1

      Thank you so much for this genuine comment! ❤❤❤

  • @zombiehellmonkeygaming1956
    @zombiehellmonkeygaming1956 4 года назад +5

    Wow, thank you for the brilliant explanation! You make everything sound so simple. I have only ever used std::list, so to understand how linked lists actually work under the bonnet really helps.

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

      I'm happy that you find my explanation helpful and that you understand how LL work inside 🤞🤗🤗

  • @handsoncoding7693
    @handsoncoding7693 7 месяцев назад

    thanks a lot CodeBeauty. I am BCA student at manipal university jaipur, I struggke understanding this concept from other tutorial, but yours is super easy to grasp. thanks again

  • @SHIVAMSHUKLA-be7zj
    @SHIVAMSHUKLA-be7zj 3 года назад +1

    amazing explanation.. i wish i had a teacher like you.. respect... in this era where people are making insta youtube reels , which are absolute trash.. people like you are really motivating us.

  • @nitinnishad4810
    @nitinnishad4810 3 года назад +1

    main()
    {
    int size,n;
    coutsize;
    n=size;
    int arr[n];
    cout

  • @klevialushi571
    @klevialushi571 3 года назад +2

    Thanks for the video!

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

    i have seen many videos..but only from ur video i learned it and best explanation..thankuu

  • @TravelTales-a
    @TravelTales-a Год назад

    after watching hundred of videos, this video make me understand linked lists lots of thankss 💞💞

  • @ayushjoshi9126
    @ayushjoshi9126 3 года назад +2

    This is some high quality teaching
    Understood all of it!!!!!!!!!

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

    You're a saviour. How nicely you have made me to understand the topic i cant explain thanks
    🥰

  • @5g8ohsl
    @5g8ohsl 2 года назад +1

    great explaining, better than our lecturer

  • @piiaall
    @piiaall 3 года назад +1

    For the first time, I have understood code of Linked List properly ✨️✨️✨️

    • @CodeBeauty
      @CodeBeauty  3 года назад +1

      Happy to hear that 🥰🥰

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

    the way you explained everything so simple yet so informative. Def a new sub from me and will tell all my classmates and friends to go here when they also have troubles with c++

    • @CodeBeauty
      @CodeBeauty  Год назад +1

      Dive into coding with your pals; it's more fun that way. After you learn to code dream big and kickstart a startup with your unique idea. Once your app's got its roots and a solid concept, find good investors. Who knows, you might just be on the path to becoming the next big thing, like Facebook or TikTok! 🚀

    • @raine7428
      @raine7428 Год назад +1

      @@CodeBeauty Thank you, I will keep that in mind. Especially now that we're nearing our graduation, atleast we'll have choices we can take

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

    Your videos are amazing! Very clear and engaging. Thank you so much

  • @rabbitazteca23
    @rabbitazteca23 3 года назад +1

    please make a linked list playlist that explores everything about linked lists like insertion in middle, anywhere, back, front,, double linked lists, applications of double linked lists, cyclic linked lists, application of cyclic linked lists, answering coding questions related to linked lists, etc... My prof said that linked lists are the most common form of interview questions when it comes to applying to jobs that are related to programming.

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

    You are a LIFE SAVER thank you from the deep of my heart.

  • @ComputerGuru-tk2hg
    @ComputerGuru-tk2hg Год назад

    You are the best c++ instructor atleast most of my code I code with you follows logically keep up the good work Saldina @CodeBeauty please create a separate course for c++ data structures which have graphs in them

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

    Yes, I got now easy explanation . Thanks and upload more.

  • @Sisi_San
    @Sisi_San 9 месяцев назад

    You are so amazing! I love your teaching and can't wait to learn more!

  • @kenopedia7023
    @kenopedia7023 11 месяцев назад

    Thank You very much. I learn a lot from your videos. Thanks Professor. I give exam last semester . Your videos help me a lot. Hope I will pass the exam. But I learned a lot from you. Again Thanks a lot. Keep make videos and also make videos on Advance algorithm to code .

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

    You're the best

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

    I recently came across your channel and I must say the way you explain is commendable. Thanks for such great explanation of all the minute details of the code

  • @PureASM-ShellCoder
    @PureASM-ShellCoder 4 года назад +1

    Thank you very much ! You're the best ! 😌 You've gotten me into programming again … !

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

    You are a life saver. Thank you!

  • @amvtech5945
    @amvtech5945 5 месяцев назад

    This was such a pain to learn but you made it so much easier! Thank you so much!

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

    I really love the way you explain things.

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

    You explained the linked list very clear and concise. Thank you!

  • @MeetPatel-ps1hh
    @MeetPatel-ps1hh 3 года назад +1

    Little tip,
    use delete head;
    at end to free up the allocated memory:)

  • @naboulsikhalid7763
    @naboulsikhalid7763 22 дня назад

    very enough to understand the whole subject. Thank you

  • @killatony4093
    @killatony4093 10 месяцев назад +1

    Thank you Ms.Coding Lady.

  • @joebosah2727
    @joebosah2727 3 года назад +1

    Thanks, you nailed it

  • @محمداليريمي-س6ص
    @محمداليريمي-س6ص 7 месяцев назад +1

    This leson is very usefull thanks very muthc

  • @Yurihjjjn
    @Yurihjjjn 3 года назад +3

    This is great!!!
    Lots of love from Pakistan 🇵🇰❤️

  • @1艾志
    @1艾志 3 года назад

    You are more than a teacher 非常好👍

  • @Rob-147
    @Rob-147 2 года назад

    thank you for breaking it down like this!

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

    Thnx, you are great in explaining things....

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

    You explain these concepts extremely clear holy shit. Amazing job!

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

    Thanks Saldine it is so great I'v seen a lot of videos about linked list and I didn't understand it but now I understand it
    NOT: I'm Syrian and I'm not native in English but your explaining is so simple thank you so much

  • @029bryandavid7
    @029bryandavid7 Год назад

    You are God awesome explanation 👍👍💥💥

  • @manim4434
    @manim4434 3 месяца назад

    Thank you so much ❤
    Could you please make more videos on linked lists? Like Doubly linked list, or how to reverse the linked list?

  • @mathilda247
    @mathilda247 8 месяцев назад

    Thank you for fluencer and understandable English ❤

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

    Very clear, as always
    Your videos are very helpful :)

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

    Your videos are very helpful. You explain well. Thanks!

  • @thedungnguyen4440
    @thedungnguyen4440 3 года назад +1

    i feel like im in love with y Saldina, you make things in coding seem more intuitively. big thanks from VietNam, i will introduce this channel to all of my friend who are trying to learn c++ for sure.
    However, Could you make more video relate to doing some particular project.
    Wish you all the best with this channel as well as your personal life.

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

    0:00 been watching videos all day long - this is the only one which got audio levels okay enough.
    rest all are sooo feeble. idky.

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

    I really appreciate what you do, thank you

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

    best teacher,,u explain better than my profs..hope u also have java language .

  • @egyptianst0rm334
    @egyptianst0rm334 3 года назад +1

    finally found a good teacher

    • @CodeBeauty
      @CodeBeauty  3 года назад +1

      New video related to doubly linked lists coming soon ☺️☺️

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

    Your channel has been a huge help and now I look for your channel when searching for a topic regarding C++, would you ever make a video regarding destructors as well?

  • @kunalakhade5660
    @kunalakhade5660 3 года назад +2

    I watched other random videos of linked list before I came to this video but my all doubts got solved here only . Just Thank you❤️ Lots of respect🌟
    Can you please make a complete dsa playlist?? Plzzz🙏❤️

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

      Thank you, fantastic explanation.