data-structures-linked-lists Flashcards
1
Q
How are linked lists different from an array?
A
arrays can directly access anything within the array, linked lists have to be traversed (no way to directly access anything)
2
Q
How would you access an arbitrary node in a linked list (not just the “head”)?
A