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

  Рет қаралды 100,757

CodeBeauty

CodeBeauty

Күн бұрын

Пікірлер: 195
@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.
@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.
@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 😃
@deneristargerian6755
@deneristargerian6755 2 жыл бұрын
I love how u used images in order to explain everything. It's perfectly clear now, thanks Saldina ❤
@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
@ronygh9946
@ronygh9946 Жыл бұрын
can you please make a video how to add a node at first/last doubly linked list
@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 Жыл бұрын
🥰🥰
@yKy-yKy
@yKy-yKy 11 ай бұрын
you keeping the texts on the screen while coding was so thoughtful!
@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!❤
@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 2 ай бұрын
thank you for clarifying that.
@melondoom2711
@melondoom2711 2 жыл бұрын
This video is amazing! Now I can finally do my school work without searching all day on stack overflow (;
2 жыл бұрын
Great videos! I binge watched lots of them in the past days. Greetings from Hungary!
@AliTanoli-cq3js
@AliTanoli-cq3js 11 ай бұрын
This video help me understand andbe able to implement doubly linked lists very easily Thank you so much 🥰
@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!
@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 ❤️❤️❤️❤️❤️❤️❤️
@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.
@Tawny1919
@Tawny1919 6 ай бұрын
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 ^^
@arianghanbari1349
@arianghanbari1349 2 жыл бұрын
Thanks for making this video. I was waiting for that.
@arshmaanali714
@arshmaanali714 2 жыл бұрын
Thank you so much😍😍 mam❤️Plz make more videos related to data structures
@marcelooliv3ira717
@marcelooliv3ira717 2 жыл бұрын
Thank's for this video!
@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
@luisalamo2658
@luisalamo2658 2 жыл бұрын
I'm in love, you explain so perfectly these basic concepts. Where you were when I was a student?
@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.
@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!
@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
@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.
@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
@lucario4399
@lucario4399 2 жыл бұрын
Node* node = new Node(); Is just a statement to keep the location of node(we created)
@mehmetb3760
@mehmetb3760 2 жыл бұрын
Ms Saldina thank you, Please continue with the second part of this video.
@xamsemohamed_khalifa
@xamsemohamed_khalifa Жыл бұрын
Yes please we absolutely need a part2 for doubly linked list , different ways of inserting plz plz plz
@darleneopea5616
@darleneopea5616 2 жыл бұрын
Your videos are so helpful! Can't wait for part 2 and the circular linked list❤❤
@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
@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)
@making.fronds
@making.fronds 2 жыл бұрын
Do you need to delete nodes at the end of the program when using the keyword new? thanks
@ahmad_988
@ahmad_988 2 жыл бұрын
Kindly make videos on total parts of doubly linked list, like deletion, sorting of linked list. Thanks
@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.
@graymatter1426
@graymatter1426 2 жыл бұрын
Thank you so much for your video
@sebastiansantacruz1002
@sebastiansantacruz1002 2 жыл бұрын
Yes, we want a second part please
@kingzgaming5331
@kingzgaming5331 2 жыл бұрын
Love what you do! I found your videos so helpful thank you!
@KTL-rs7ge
@KTL-rs7ge 2 жыл бұрын
Do we need to use "delete" keyword?
@wrkrebel
@wrkrebel 2 жыл бұрын
super fun to watch and very informative.
@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
@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
@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!
@nowyourepleading6139
@nowyourepleading6139 2 жыл бұрын
I love the way your Expiation btw am first year software student i hope you will help me thanks dear 🤗
@christopherc3214
@christopherc3214 2 жыл бұрын
Excellent video. Thank you so much for your help :) you gained a new subscription!
@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?
@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!
@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 ☺️☺️
@aurelian3401
@aurelian3401 2 жыл бұрын
Good afternoon. Kotlin or Java? Thanks!
@Ijamhuang
@Ijamhuang 2 жыл бұрын
Nice Job ! Please give us 2nd part of double linked list video
@saharishtayeh220
@saharishtayeh220 2 жыл бұрын
Thank you so much, I hope you keep making videos about data structure
@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 :)
@TheDima23
@TheDima23 Жыл бұрын
Amazing video, thank you !
@nientranai1669
@nientranai1669 2 жыл бұрын
thank you so much for this lesson
@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
@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!
@rehmanrafiq9529
@rehmanrafiq9529 2 жыл бұрын
why didn't you use node* for creating new node and adding that node to previous node??
@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).
@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.......
@hollyhorsfall7153
@hollyhorsfall7153 2 жыл бұрын
i love the way you teach❤❤❤❤
@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.
@thisiskumars
@thisiskumars 2 жыл бұрын
Difference: use tail and prev in printBackwards
@asadsaeed2232
@asadsaeed2232 2 жыл бұрын
Hi. can you make a video on how to create a dynamic doubly link list.
@Pegasushi30
@Pegasushi30 2 жыл бұрын
Great instruction as always. Thumbs up😁
@alaaben2238
@alaaben2238 2 жыл бұрын
Amazing follow you from algeria ❤
@robertod893
@robertod893 Жыл бұрын
The finger snap special effect :)
@CodeBeauty
@CodeBeauty Жыл бұрын
😁🤣🤣
@hoangnguyenanh815
@hoangnguyenanh815 2 жыл бұрын
very detailed explanation. thank you
@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
@shahabkhan1765
@shahabkhan1765 2 жыл бұрын
out standing explanation
@krishsharma6276
@krishsharma6276 2 жыл бұрын
Thanks for this wonderful video 😊
@roshanpoudel5140
@roshanpoudel5140 2 жыл бұрын
What is the best data structure for interpolation /extraction from imperical/preset tables?
@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.🤗
@DNicco_
@DNicco_ 2 жыл бұрын
Hey @CodeBeauty please make us a part 2 for DLL
@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 ❤️
@thrice5560
@thrice5560 2 жыл бұрын
Confused on what's happening at tail->next = node and tail= node is this not the same.?
@Ghisisan_
@Ghisisan_ 2 жыл бұрын
Very nice explained. Waiting for part 2... :)
@gouravsharma8567
@gouravsharma8567 2 жыл бұрын
complete about double linked list
@abdulhannanmasood3784
@abdulhannanmasood3784 2 жыл бұрын
I have a question you haven't used head.
@sabinanurak9633
@sabinanurak9633 2 жыл бұрын
Great job! 👍
@asthajain7207
@asthajain7207 2 жыл бұрын
We need a second part of this video
@anirudhshekhawat1174
@anirudhshekhawat1174 2 жыл бұрын
Saldina it's a request to please make a playlist of whole data structures course
@TonyStark-lw7lv
@TonyStark-lw7lv 2 жыл бұрын
Thank You for explaining it so easily.
@CodeBeauty
@CodeBeauty 2 жыл бұрын
you're welcome ☺️😀
@fadibenshadi7165
@fadibenshadi7165 2 жыл бұрын
if you make a course about Dart and Flutter you will be the most famous programming KZbin channel.
@stephenelliott7071
@stephenelliott7071 2 жыл бұрын
Inserting in the middle of a list and deleting would be good for a part 2.
@ZeroCool2211
@ZeroCool2211 2 жыл бұрын
Amazing!! awaiting for binary tree tutorial 👍🏼
@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"?
@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,
@manjeetsahu6381
@manjeetsahu6381 2 жыл бұрын
Ma'am could you please make video on Trees and Graph
@misatran1107
@misatran1107 3 ай бұрын
do you have visualization of reverse double LL
@CodeBeauty
@CodeBeauty 3 ай бұрын
A real-life example of a doubly linked list is a browser's history. Each node represents a webpage, with pointers to the previous and next pages. This allows users to efficiently navigate back and forth using the "Back" and "Forward" buttons, similar to traversing a doubly linked list.
@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.
@vcihiethea
@vcihiethea 8 ай бұрын
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.
@李達組
@李達組 2 жыл бұрын
can you teach us Liunx?
@jnab0
@jnab0 2 жыл бұрын
great content! any chance for a python tutorial in the future?
@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
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Doubly Linked List | Insert, Delete, Complexity Analysis
17:17
Blue Tree Code
Рет қаралды 70 М.
Learn Linked Lists in 13 minutes 🔗
13:24
Bro Code
Рет қаралды 370 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 1 МЛН
you will never ask about pointers again after watching this video
8:03
Introduction to Linked Lists (Data Structures & Algorithms #5)
18:47
SMART POINTERS in C++ (for beginners in 20 minutes)
24:32
CodeBeauty
Рет қаралды 106 М.
Doubly Linked List - Implementation in C/C++
15:21
mycodeschool
Рет қаралды 591 М.
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН