Short introduction to linked lists in C

  Рет қаралды 91,669

CodeVault

CodeVault

Күн бұрын

Пікірлер: 55
@Moniaar_
@Moniaar_ Жыл бұрын
I literally spent the whole day trying to figure how this worked. Now i stumbled across your video and i understood everything in like 12 minutes. Thank you so much for simplifying such a complicated concept.
@sagarbasnet6088
@sagarbasnet6088 4 жыл бұрын
Thank you so much. Best programming channel ever.I wish you were a professor in our college.
@MahmutcanKaraman-wm6fb
@MahmutcanKaraman-wm6fb Жыл бұрын
Been struggling in this subject for some time. You really helped me gain my confidence back thanks a lot for the well explained subject and much love.
@mh-tw4kx
@mh-tw4kx 2 жыл бұрын
Bruhh this channel is so underrated, you explain it so simple, not those complicated high level language bs, thank u so much
@mohammedamin7130
@mohammedamin7130 Жыл бұрын
Best intro video that made me understand linked lists. watched a lot but none mixed code with explanation so quickly
@درسدرس-س7غ
@درسدرس-س7غ 9 ай бұрын
Thank you so much sir! you explained it so well! I had a lot of problem with linked list and was giving up on it but now i'm excited! I'll start to watch the whole playlist :)
@Hevletica
@Hevletica 2 жыл бұрын
My favourite KZbin channel at the moment. I subscribed with two channels!
@makerofstartup7902
@makerofstartup7902 6 ай бұрын
I like your practical approach of programming memory(also -> vs . ), gave me few thoughts of putting it in spinning out cycle as dynamic link list. And free as demonstration is ok, but at the end of life, process with all its heaps(inside which are allocations) will be returned to os as free momory(if I remember right). Thank you.
@n33to
@n33to 3 жыл бұрын
Sir, you are an excellent teacher. Thank you.
@RaaZVan99
@RaaZVan99 3 жыл бұрын
So easy to follow and well explained Many thanks =)
@grapejelly7
@grapejelly7 2 жыл бұрын
thanks from Taiwan!! hope i had found this video before my midterm lol
@longvunguyen6265
@longvunguyen6265 4 ай бұрын
OMG I love you so much !!! You just saved my life
@Cat_Sterling
@Cat_Sterling 3 жыл бұрын
Thank you for your great videos!
@danielzir197
@danielzir197 Жыл бұрын
Thanks bro, thanks to you i understood linked lists ; )
@tassneemaltaf2001
@tassneemaltaf2001 Жыл бұрын
Very well explained.. Subscribed!
@yassinex3144
@yassinex3144 Жыл бұрын
Thank you teacher . You are the best
@towtruckn
@towtruckn Жыл бұрын
Thanks for the great video. Would I be right in saying that despite the fact a linked list is not an array; when memory is allocated with malloc() the reference to the next element on the heap would by default be contiguous if no other program is using that area of memory?
@CodeVault
@CodeVault Жыл бұрын
Depends on how the operating system handles it but I can assure you it's not guaranteed. One reason would be memory fragmentation. Basically the whole address space is not made up of a contiguous block of allocated memory and then a contiguous block of unused memory, it has lots of gaps. Because of that, there are situations where the OS decides to allocate the next block of memory elsewhere rather than the next contiguous block since it would be more efficient.
@towtruckn
@towtruckn Жыл бұрын
@@CodeVault Thanks for the reply; that makes a lot of sense especially given that in the past Windows had a problem with fragmentation. I don't know much about fragmentation on Linux but know that it is an issue. Thanks again.
@ALEX00347
@ALEX00347 10 ай бұрын
all student 1337 loves you bro
@imperatusmauser7096
@imperatusmauser7096 3 жыл бұрын
Mike Dane? He teaches millions of people? Never heard of him. Who needs Mike Dane when CodeVault exists?
@QanarIsDelirious
@QanarIsDelirious 2 жыл бұрын
im still super confused what i have to take from this to work with in my first semester exams now ... like you start a node put a next to it ... but what can i do now :D will this be the full exam quest ,,, unclear what i shall prepare for actualy
@CodeVault
@CodeVault 2 жыл бұрын
A linked list is just another way to store a set of data (an array for example). You know how you can quite simply add/remove/change elements in an array? Well, I assume, your teacher wants you to know how to do the same but with linked lists
@QanarIsDelirious
@QanarIsDelirious 2 жыл бұрын
@@CodeVault build Most of the functions now ..the only Thing that i cant make Work is the free List function while all delete functions Work
@QanarIsDelirious
@QanarIsDelirious 2 жыл бұрын
@@CodeVault i was kinda confused at First since i watched Like 5 Videos that Made step 1 of that linked list Thing and My brain didnt understand why i would Want a list of 2-3 Things with No usecase
@theseangle
@theseangle Жыл бұрын
​@@QanarIsDeliriousyou can use your linked lists to implement custom hashmaps! And then you can use those to write efficient code :)
@aminekar8447
@aminekar8447 2 ай бұрын
this guy is a legend, W
@codsnippet
@codsnippet Жыл бұрын
this man is damn genius
@powerHungryMOSFET
@powerHungryMOSFET Жыл бұрын
Subscribed. Loved it
@brkycan
@brkycan 3 жыл бұрын
hey man , *root.next.x=root.next->x those are equal things we said. but root is not a type of node * , it is type of node. how do this works? If it could be *(root.next).x , i would understand because (root.next) is a type of node * ;
@CodeVault
@CodeVault 3 жыл бұрын
root.next->x is the same as *(root.next).x and definitely not *root.next.x The difference is that the first one dereferences root.next while the second one dereferences root.next.x (which is not a pointer as you said).
@ananthkashyap3232
@ananthkashyap3232 3 жыл бұрын
Excellent video, great content.. Even some of the paid Udemy videos are not as good as this!
@bushraw66
@bushraw66 Жыл бұрын
can you please do a video about circular singly and doubly linked lists?
@CodeVault
@CodeVault Жыл бұрын
Sure, I noted it down
@Cat_Sterling
@Cat_Sterling 3 жыл бұрын
What will happen if instead of "root.next = &elem2;" I will write "root.next = elem2;" ?
@CodeVault
@CodeVault 3 жыл бұрын
You'll just get a compilation error since elem2 is of type Node but root.next is of type Node*
@Cat_Sterling
@Cat_Sterling 3 жыл бұрын
@@CodeVault Thank you!
@burakburak5987
@burakburak5987 Жыл бұрын
typedef struct Node{ int x; struct Node* next; } isn't this a something recursive? i mean it's like an endless loop. becuase in struct there is a piece of its own. can someone please explain?
@CodeVault
@CodeVault Жыл бұрын
It's not recursive. The size of the struct can be calculated at compile time since "int x" is (usually) 4 bytes and "struct Node* next" is (usually) 8 bytes. Because "next" is a pointer there's nothing recursive about it. Pointers in the whole program always have the same size. If you were to try to define "next" like so instead: "struct Node next" (without the *) you would get an error
@burakburak5987
@burakburak5987 Жыл бұрын
@@CodeVault The point i struggled was that we use the struct (as a pointer) before compliting identifying the structure. Thanks for reply...
@AtomAlexanderMunozNava
@AtomAlexanderMunozNava 7 ай бұрын
Good content
@keblinskiwastaken
@keblinskiwastaken Жыл бұрын
good videos!
@Beastmodeyt23
@Beastmodeyt23 2 жыл бұрын
Lovely accent!
@Etk333
@Etk333 4 ай бұрын
Ty
@yuvalitzhak
@yuvalitzhak Жыл бұрын
king!!
@burakburak5987
@burakburak5987 Жыл бұрын
4:57 where is the link?
@CodeVault
@CodeVault Жыл бұрын
Should be at the top. But here is the link nonetheless: code-vault.net/lesson/x8a6oj884e:1603733520791
@burakburak5987
@burakburak5987 Жыл бұрын
@@CodeVault Thank you
@botobeni
@botobeni 3 жыл бұрын
instant sub
@recepbayraktar6542
@recepbayraktar6542 3 жыл бұрын
Thank you!
@ionguzun3952
@ionguzun3952 2 жыл бұрын
thanks bro...
@riadhallouch
@riadhallouch 3 жыл бұрын
this shit is tough :(
@CodeVault
@CodeVault 3 жыл бұрын
Nothing worth learning is easy :/
@cezzar5233
@cezzar5233 2 жыл бұрын
💙
@ibrahimbani1809
@ibrahimbani1809 2 жыл бұрын
thanks a lot
Iterating over a linked list in C
11:45
CodeVault
Рет қаралды 37 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 54 МЛН
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,8 МЛН
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 10 МЛН
LINKED LIST (CREATION AND DISPLAY) - DATA STRUCTURES
42:19
Sundeep Saradhi Kanthety
Рет қаралды 367 М.
struct Basics | C Programming Tutorial
24:44
Portfolio Courses
Рет қаралды 143 М.
Learn Linked Lists in 13 minutes 🔗
13:24
Bro Code
Рет қаралды 322 М.
you will never ask about pointers again after watching this video
8:03
Adding elements to a linked list
18:46
CodeVault
Рет қаралды 40 М.
All you need to know about linked lists, Libft
38:04
Oceano
Рет қаралды 6 М.
Linked Lists for Technical Interviews - Full Course
1:27:24
freeCodeCamp.org
Рет қаралды 362 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03