Doubly Linked Lists detailed explanation for beginners (C++ Data Structures course)

  Рет қаралды 98,697

CodeBeauty

CodeBeauty

Күн бұрын

Пікірлер: 197
@CodeBeauty
@CodeBeauty 2 жыл бұрын
📚 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. #include using namespace std; class Node { public: int value; Node* next; Node* previous; }; void printForward(Node*head) { Node* traverser = head; while (traverser != nullptr) { cout valuevalue = 4; node->next = nullptr; node->previous = nullptr; head = node; tail = node; //add 2nd node node=new Node(); node->value = 5; node->next = nullptr; node->previous = tail; tail->next = node; tail = node; //add 3rd node node = new Node(); node->value = 6; node->next = nullptr; node->previous = tail; tail->next = node; tail = node; //add 4th node node = new Node(); node->value = 7; node->next = nullptr; node->previous = tail; tail->next = node; tail = node; printForward(head); //printBackward(tail); cin.get(); }
@boosm5485
@boosm5485 2 жыл бұрын
❤️
@ladymorwendaebrethil-feani4031
@ladymorwendaebrethil-feani4031 2 жыл бұрын
A part II would be good. Mainly to learn how to insert a node in the middle of the list, after and before a given node.
@spicyshizz2850
@spicyshizz2850 Жыл бұрын
yessss
@NimishP
@NimishP Жыл бұрын
It refreshed my 32 years old project I accomplished in university as a mechanical engineer.
@altheahicks9574
@altheahicks9574 2 жыл бұрын
'traverser' is an english word! And actually perfect for this example, because a traverser is a piece of railway equipment that moves a rail car from one rail to another :) It "traverses" the car through the rails, much like our traverser pointer "traverses" through the elements of our linked list.
@CodeBeauty
@CodeBeauty 2 жыл бұрын
thank for this explanation, it will help people to better visualize the code 😃
@NADEEMAHMAD-uo6hm
@NADEEMAHMAD-uo6hm Жыл бұрын
your voice is to polite, noone will be bored in the lecture , and you teach us with the example that is mind blowing
@deneristargerian6755
@deneristargerian6755 2 жыл бұрын
I love how u used images in order to explain everything. It's perfectly clear now, thanks Saldina ❤
@yuruar
@yuruar 2 жыл бұрын
Extremely perfect video. Your explanation of hard topics like magic) Without doubt, one of the best channel about C++ on KZbin.
@CodeBeauty
@CodeBeauty 2 жыл бұрын
Thanks. This is very confusing topic for beginners so I used drawings in order to explain how it works. I know that people learn and remember more that way ☺️☺️
@Reem-du7sd
@Reem-du7sd 2 жыл бұрын
I just finished watching the data structures playlist. 🤩Hope you upload more videos on data structures, you'll help a lot of beginners like myself. Thanks for uploading extremely insightful videos!❤
@Justlearnbyme
@Justlearnbyme Жыл бұрын
I am practice doubly linked list program and I am confuse in traverse the program after watch your video all confusion has been clear.... thank u❤
@CodeBeauty
@CodeBeauty Жыл бұрын
🥰🥰
@bahadr4331
@bahadr4331 2 жыл бұрын
The actual reason as you know is the Heap memory. Pointers are used to allocate memory in heap so that you can program dynamicly.
@seamusmccollum8893
@seamusmccollum8893 Ай бұрын
thank you for clarifying that.
@TheKhilo
@TheKhilo Жыл бұрын
Your production quality increases at a rate of e^(n) between videos. You are the reason I've started to actually enjoy my coding courses. Thank you for the stellar work and the incredible explanations.
@melondoom2711
@melondoom2711 2 жыл бұрын
This video is amazing! Now I can finally do my school work without searching all day on stack overflow (;
@yKy-yKy
@yKy-yKy 10 ай бұрын
you keeping the texts on the screen while coding was so thoughtful!
@fazalkhaliq4084
@fazalkhaliq4084 2 жыл бұрын
Your The Best Teacher I am Learning nothing from my Uni but From You Please Keep it Up And Make Us The best programmer Because we Just Follow You ❤️❤️❤️❤️❤️❤️❤️
@making.fronds
@making.fronds 2 жыл бұрын
Would love to see more info on doubly linked lists!! Also circular linked lists would be amazing :) thanks again for great info!
@SarveshChaurasia-pt3uo
@SarveshChaurasia-pt3uo 2 жыл бұрын
I didn't find any video of Linked list with this much clarity kudos to you 👍🏻👍🏻 Please make videos on graph and trees it will help us a lot
@darleneopea5616
@darleneopea5616 2 жыл бұрын
Your videos are so helpful! Can't wait for part 2 and the circular linked list❤❤
@ronygh9946
@ronygh9946 Жыл бұрын
can you please make a video how to add a node at first/last doubly linked list
@lucario4399
@lucario4399 2 жыл бұрын
Node* node = new Node(); Is just a statement to keep the location of node(we created)
@yuhuili6738
@yuhuili6738 Жыл бұрын
Still, remember the first video I watched from CodeBeauty was how to set up the coding environment and how to print out Hello World. Glad to myself learned all the way here. Thank you very much for these excellent courses!
2 жыл бұрын
Great videos! I binge watched lots of them in the past days. Greetings from Hungary!
@bigpanda9928
@bigpanda9928 2 жыл бұрын
Which IDE do you reccomend. VsCode or Visual studio 2019/2022.
@subasarvesh2101
@subasarvesh2101 2 жыл бұрын
Hello mam, can you please make a full course on python just like as you did for c++ ?, so that it could help me and others to proceed further towards our goals, I have learnt a lot from you, your teachings are immensely wonderful and thank you so much for that .could you please do that.
@jiananbai9464
@jiananbai9464 2 жыл бұрын
Dear, your video is very useful to me, can you introduce stacks and queues like linked lists, instead of using STL, besides, I would like to know more operations of linked lists such as deletion and so on.
@xamsemohamed_khalifa
@xamsemohamed_khalifa Жыл бұрын
Yes please we absolutely need a part2 for doubly linked list , different ways of inserting plz plz plz
@kingzgaming5331
@kingzgaming5331 2 жыл бұрын
Love what you do! I found your videos so helpful thank you!
@Tawny1919
@Tawny1919 5 ай бұрын
You are amazing! Thank you for taking the time to explain everything so well, and in such an easy to understand way. And thank you for having a calming voice rather than the classic loud KZbinr voice, makes learning less stressful ^^
@AliTanoli-cq3js
@AliTanoli-cq3js 10 ай бұрын
This video help me understand andbe able to implement doubly linked lists very easily Thank you so much 🥰
@arianghanbari1349
@arianghanbari1349 2 жыл бұрын
Thanks for making this video. I was waiting for that.
@mehmetb3760
@mehmetb3760 2 жыл бұрын
Ms Saldina thank you, Please continue with the second part of this video.
@sakurapandu8860
@sakurapandu8860 2 жыл бұрын
I just started making a linkedlist so its like you made this especially for me lol. super helpful!!
@CodeBeauty
@CodeBeauty 2 жыл бұрын
I'm glad I published the video than ☺️☺️
@EASss
@EASss 2 жыл бұрын
for part if you havent done it can you create the double linked list like afull data structure where it haves member function like push_back,push_front(),iterators,get_link(i) and extc.(like the functions of astd::vector)
@luisalamo2658
@luisalamo2658 2 жыл бұрын
I'm in love, you explain so perfectly these basic concepts. Where you were when I was a student?
@ChrisVideosGreek
@ChrisVideosGreek 2 жыл бұрын
It's a hard to explain video but lots of people would like to know how to make simple screensavers in c++! l've seen some but they were so outdated like the oldest one you could find was from 2001. These things take time but if you ever manage to try this, it would be really cool!
@marcelooliv3ira717
@marcelooliv3ira717 2 жыл бұрын
Thank's for this video!
@metatronmen2431
@metatronmen2431 2 жыл бұрын
Im a subscriber, I want to tank you for all the work you put in this channel, I think I speak for most of us. BTW I miss your Batman shirt.
@RagHelen
@RagHelen 2 жыл бұрын
There is a bloody good reason, why no link list tutorial ever comes up with one single useful example. They are meant to create more mindless people creating ridiculous class architectures for problems which could be solved with a simple array.
@orangeeezoe
@orangeeezoe 2 жыл бұрын
Plz introduce us the 2nd double linked list course on how to insert new elements to a linked list and how to merge two linked list together and put all elements in order.
@thisiskumars
@thisiskumars 2 жыл бұрын
Difference: use tail and prev in printBackwards
@Panthera-Uncia
@Panthera-Uncia 2 жыл бұрын
Great video. I appreciate the effort you put into making it. I do have a feedback for a succession to this video (in the topic of Linked Lists): it would be great and help out many students who are studying structures in C++ if you could make a video about Circular Linked Lists. Thank you and God bless!
@fayehill1225
@fayehill1225 2 жыл бұрын
Thank you for this video. Please post a second part for doubly linked list
@CodeBeauty
@CodeBeauty 2 жыл бұрын
second video is here 😃 kzbin.info/www/bejne/iH-wenega5eildE
@fayehill1225
@fayehill1225 2 жыл бұрын
@@CodeBeauty Thank you so much!
@Irek1994
@Irek1994 2 жыл бұрын
It's nice to listen to you and watch you, I wish you further development of this channel you're the best KZbinr
@saharishtayeh220
@saharishtayeh220 2 жыл бұрын
Thank you so much, I hope you keep making videos about data structure
@sebastiansantacruz1002
@sebastiansantacruz1002 2 жыл бұрын
Yes, we want a second part please
@ahmad_988
@ahmad_988 2 жыл бұрын
Kindly make videos on total parts of doubly linked list, like deletion, sorting of linked list. Thanks
@luisdelgadillo3738
@luisdelgadillo3738 2 жыл бұрын
Yes second video Please it will help me a lot with my class!!
@ahkr77
@ahkr77 2 жыл бұрын
please make a tutorial for learning python
@arshmaanali714
@arshmaanali714 2 жыл бұрын
Thank you so much😍😍 mam❤️Plz make more videos related to data structures
@making.fronds
@making.fronds 2 жыл бұрын
Do you need to delete nodes at the end of the program when using the keyword new? thanks
@anirudhshekhawat1174
@anirudhshekhawat1174 2 жыл бұрын
It's a request to make a video on graphs and trees also.....so that you would cover all the topics in dsa course
@Lalinxdboom
@Lalinxdboom Жыл бұрын
i found your channel which is very helpful for me because i dont find any channels that provides data structure in c++ please upload more videos
@ohwow2074
@ohwow2074 2 жыл бұрын
Very nice. Also you could try using unique pointers in the next video (I wonder if they can be safer for such a data structure).
@qw9uj
@qw9uj 2 ай бұрын
Oh myyyyy this saved my life so much.
@CodeBeauty
@CodeBeauty 2 ай бұрын
im glad to hear that :D
@Ghisisan_
@Ghisisan_ 2 жыл бұрын
Very nice explained. Waiting for part 2... :)
@graymatter1426
@graymatter1426 2 жыл бұрын
Thank you so much for your video
@Thebiggame-dc8ek
@Thebiggame-dc8ek Жыл бұрын
Thank you I wathed it thouroughly😊 How can we add a new node between the previous ones while we don't have their pointer names? May we can pass the function how many object we want to traverse, like AddinTheMiddle(head,5); to add an object after the 5th object from the head. Am I correct or not? Thanks again.🤗
@TonyStark-lw7lv
@TonyStark-lw7lv 2 жыл бұрын
Thank You for explaining it so easily.
@CodeBeauty
@CodeBeauty 2 жыл бұрын
you're welcome ☺️😀
@robertod893
@robertod893 Жыл бұрын
The finger snap special effect :)
@CodeBeauty
@CodeBeauty Жыл бұрын
😁🤣🤣
@majdasaidi9214
@majdasaidi9214 Жыл бұрын
Hey, Just wanted to thank you for the good explanation. I didnt get it in uni
@majdasaidi9214
@majdasaidi9214 Жыл бұрын
Maybe a Video about removing nodes would bei good?
@hollyhorsfall7153
@hollyhorsfall7153 2 жыл бұрын
i love the way you teach❤❤❤❤
@roshanpoudel5140
@roshanpoudel5140 2 жыл бұрын
What is the best data structure for interpolation /extraction from imperical/preset tables?
@wrkrebel
@wrkrebel 2 жыл бұрын
super fun to watch and very informative.
@christopherc3214
@christopherc3214 2 жыл бұрын
Excellent video. Thank you so much for your help :) you gained a new subscription!
@nowyourepleading6139
@nowyourepleading6139 2 жыл бұрын
I love the way your Expiation btw am first year software student i hope you will help me thanks dear 🤗
@bardial
@bardial Жыл бұрын
Hi ,can someone please tell me what's difference between NULL and nullptr? can i use NULL for pointers as well ? thanks❤
@CodeBeauty
@CodeBeauty Жыл бұрын
Use nullptr for safety, cuz there are some very rare ocassions when NULL can cause problems, but in most situations it won't
@CodeBeauty
@CodeBeauty Жыл бұрын
I'll make sure to create a short insta reel to explain this 😃
@bardial
@bardial Жыл бұрын
@@CodeBeauty thank you so much ❤️❤️
@bardial
@bardial Жыл бұрын
@@CodeBeauty it would be awesome ❤️
@vijaydulam632
@vijaydulam632 2 жыл бұрын
That was a super explanation. Can you explain multithreading concepts, having a hard time to understand. If you've any experience in boost library in cpp please do tutorial on it. No KZbin channel covers it fully. Thanks saldina
@Mzkysti
@Mzkysti 2 жыл бұрын
Great video, thanks. Only downside is that there are 5 commercials within 19 min video (using Chromecast) 😐.
@CodeBeauty
@CodeBeauty 2 жыл бұрын
The ads are based on your Google Ad Settings and the videos you've watched, and an average viewer will see 2-3 ads max. So, you seem to be very interesting and valuable to the advertisers, and they are targeting you as a potential customer more than they are targeting an average viewer. No matter how many ads I put, KZbin will not show them to most viewers. The ads that you see are tailored to your interests, and your interests are apparently a niche that is very saturated with digital marketing. 🤔😋🤗
@Mzkysti
@Mzkysti 2 жыл бұрын
@@CodeBeauty thanks for your answer, I moved to my MacBook Pro so no more ads :). Only concern I have here that you seem to have few "new" there but no "delete"?
@uguryucestudent281
@uguryucestudent281 2 жыл бұрын
You should be have more than 100k watching and like I am shocked about 40k watching and 1k like. You are the best for me :)
@shahabkhan1765
@shahabkhan1765 2 жыл бұрын
out standing explanation
@pluralanimal1910
@pluralanimal1910 2 жыл бұрын
PERFECT TEACHING ....and will you consider using other tools like gcc code::blocks wxWidgets QtCreator etc.. thx ...whatever tool you use, .your stepwise teaching leaves no blindspot
@aurelian3401
@aurelian3401 2 жыл бұрын
Good afternoon. Kotlin or Java? Thanks!
@KTL-rs7ge
@KTL-rs7ge 2 жыл бұрын
Do we need to use "delete" keyword?
@asadsaeed2232
@asadsaeed2232 2 жыл бұрын
Hi. can you make a video on how to create a dynamic doubly link list.
@nientranai1669
@nientranai1669 2 жыл бұрын
thank you so much for this lesson
@Ijamhuang
@Ijamhuang 2 жыл бұрын
Nice Job ! Please give us 2nd part of double linked list video
@rajeshbelle
@rajeshbelle 2 жыл бұрын
say "hey guys" at start (like you used to say in initial videos), as it sounds cooler than "hello everyone" 😎
@AbdoAbdo-mz9zm
@AbdoAbdo-mz9zm 2 жыл бұрын
Please, I want some videoes about STL in c++ like vector, set, and iterator and examples about it in programming. And thanks for your effort 💖💖
@asthajain7207
@asthajain7207 2 жыл бұрын
We need a second part of this video
@michaelonyiac
@michaelonyiac Жыл бұрын
Beautiful double linkedlist explanation. Unfortunately I can't like it twice. I would make show to follow all your courses, Thank you beautiful
@stephenelliott7071
@stephenelliott7071 2 жыл бұрын
Inserting in the middle of a list and deleting would be good for a part 2.
@asadalijazib2287
@asadalijazib2287 2 жыл бұрын
Excellent Work
@anirudhshekhawat1174
@anirudhshekhawat1174 2 жыл бұрын
Saldina it's a request to please make a playlist of whole data structures course
@sabinanurak9633
@sabinanurak9633 2 жыл бұрын
Great job! 👍
@TheDima23
@TheDima23 Жыл бұрын
Amazing video, thank you !
@johnv4691
@johnv4691 2 жыл бұрын
Can you please make C sharp tutorials? Pleeeease... Generics, delegates and all the stupid syntax shortcuts they keep introducing every release. You have the best formula for teaching on youtube.
@rehmanrafiq9529
@rehmanrafiq9529 2 жыл бұрын
why didn't you use node* for creating new node and adding that node to previous node??
@michaelonyiac
@michaelonyiac Жыл бұрын
Salina, am one of your online c++ students and just started getting my environment ready to spend at least 10 hrs daily taking your courses. My problem is that I got the following error when I wrote ' myFirstProgram' during compilation "The java.home variable defined in visual code settings points to a missing directly on inaccessible folder(c:sersheke). Problem is I do not know what is going on with java or the right ming w to install to fix this error and move on. Please I need your help. Thanks, Tiffany
@siddharthavardhan8352
@siddharthavardhan8352 2 жыл бұрын
make a video on operations in a doubly linked list as soon as possible. I like your content and the i way of explination. Keep going.......
@gouravsharma8567
@gouravsharma8567 2 жыл бұрын
complete about double linked list
@korayustundag
@korayustundag 2 жыл бұрын
I liked it very much. You help me a lot. Thank you. Can you show us how to make a Win32 Desktop application with Visual Studio?
@ZeroCool2211
@ZeroCool2211 2 жыл бұрын
Amazing!! awaiting for binary tree tutorial 👍🏼
@kerimlihic4390
@kerimlihic4390 2 жыл бұрын
How I feel like after watching your video: knowledge++;
@fadibenshadi7165
@fadibenshadi7165 2 жыл бұрын
if you make a course about Dart and Flutter you will be the most famous programming KZbin channel.
@DNicco_
@DNicco_ 2 жыл бұрын
Hey @CodeBeauty please make us a part 2 for DLL
@Pegasushi30
@Pegasushi30 2 жыл бұрын
Great instruction as always. Thumbs up😁
@hoangnguyenanh815
@hoangnguyenanh815 2 жыл бұрын
very detailed explanation. thank you
@vcihiethea
@vcihiethea 7 ай бұрын
I'm so confused. why is head assigned a previous OR a next? and doesn't creating a new node with the same name rewrite everything? I don't understand how this even works.
@AbdullahGhamdi
@AbdullahGhamdi 2 жыл бұрын
I have checked all your videos I did not find the topic which is "References" I hope you lead me where can find it. Thank you,
@Aqxea
@Aqxea 2 жыл бұрын
Is it worth learning C++ in 2022?
@alaaben2238
@alaaben2238 2 жыл бұрын
Amazing follow you from algeria ❤
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 4,6 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 7 МЛН
Doubly Linked List | Insert, Delete, Complexity Analysis
17:17
Blue Tree Code
Рет қаралды 69 М.
you will never ask about pointers again after watching this video
8:03
Introduction to Linked Lists (Data Structures & Algorithms #5)
18:47