Short introduction to doubly linked lists

  Рет қаралды 5,436

CodeVault

CodeVault

Күн бұрын

Check out our Discord server: / discord

Пікірлер: 10
@botobeni
@botobeni 3 жыл бұрын
The few ppl that need this stuff very much appreciate your channel!
@alemon9727
@alemon9727 2 жыл бұрын
Indeed we do!!
@reddy2822
@reddy2822 Жыл бұрын
shout out from 42 Nice
@zouzou6164
@zouzou6164 2 жыл бұрын
Advantage of double-linked lists: Can keep a track of previous pointers, and make loops more easier to handle. Disadvantage: Takes more memory consumption, since you need to store a previous AND a next. Could be more confusing to understand and add nodes too Here's what i think that are advantages/disadvantages of double-linked lists! Please correct me CodeVault if i got some wrong!
@CodeVault
@CodeVault 2 жыл бұрын
Yep, that's pretty good. Good job!
@lucasferrini7063
@lucasferrini7063 3 жыл бұрын
I think that being able to iterate in both directions is quite useful. There are some cases where being able to only go to the next node is not efficient. Imagine having to print the reversed list. The only way to do something like that (at least what i can come up with right now) includes using recursive functions, which can be bad if you have a large list. You can also halve the time and processing it takes to iterate over the list, since you can start from either side). At least on a simple thought. Amazing series btw, it helped me a lot to get going with my own linked list
@animeshsarkar295
@animeshsarkar295 Жыл бұрын
Removing of a node need only one pointer while in singly link list we need two pointers, There more advantages but this I found interesting. Thank you for providing useful contents.
@jovenesmockusfajardo
@jovenesmockusfajardo 18 күн бұрын
In the video when you say Tail are you referring to Head and vice versa? At some point you said: before (previous) Tail there is nothing then NULL
@victorsenaxD
@victorsenaxD 2 ай бұрын
1 Question: this type of list should be ordered to be useful?
@CodeVault
@CodeVault 2 ай бұрын
Probably not. A tree or a simple array would be more useful if it was ordered. This list is nice if you need to append/prepend/delete elements in constant time
Iterating over doubly linked lists
5:34
CodeVault
Рет қаралды 4,1 М.
Removing an element from a linked list
13:15
CodeVault
Рет қаралды 14 М.
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 37 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 37 МЛН
Arrays as function parameters in C
13:28
CodeVault
Рет қаралды 12 М.
Adding elements to a linked list
18:46
CodeVault
Рет қаралды 39 М.
Doubly Linked List | Insert, Delete, Complexity Analysis
17:17
Blue Tree Code
Рет қаралды 65 М.
Introduction to Enumerations in C
7:39
CodeVault
Рет қаралды 14 М.
Read an array of structs in C
12:37
CodeVault
Рет қаралды 31 М.
Vulnerabilities of the gets function in C
8:35
CodeVault
Рет қаралды 9 М.
Doubly-Linked Lists - CS50 Shorts
9:52
CS50
Рет қаралды 33 М.
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН