paint-brush
WTF are Linked Lists?by@danilo-zagarcanin
505 reads
505 reads

WTF are Linked Lists?

by Danilo Zagarcanin6mJanuary 13th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Linked lists are different from arrays in their structure. The number of nodes in a linked list is not fixed and can grow and shrink on demand. Every element of the list is represented by an object with two fields. This object is called a node and first field of the node we often call head while the second field is pointing to the next node. To add a node as the last element, you changed your mind and you want to go on the end of the row, you must pass all people one by one till you arrive till the end. To insert node on the desired position we can make things easier and write the helper method that will return the index of the linked list.

Company Mentioned

Mention Thumbnail
featured image - WTF are Linked Lists?
Danilo Zagarcanin HackerNoon profile picture
Danilo Zagarcanin

Danilo Zagarcanin

@danilo-zagarcanin

L O A D I N G
. . . comments & more!

About Author

Danilo Zagarcanin HackerNoon profile picture
Danilo Zagarcanin@danilo-zagarcanin

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite