Coding Bootcamp LFZ > data-structures-linked-lists > Flashcards
How are linked lists different from an array?
Linked lists are sequential access (in order to go to a specific place, you have to start at the beginning, then jump from node to node until you get there); arrays are random access (can access any value using the index)
How would you access an arbitrary node in a linked list (not just the “head”)?
you have to start at the beginning, then jump from node to node until you get there