DATA STRUCTURES LINKED LISTS Flashcards
1
Q
How are linked lists different from an array?
A
They have data and next properties, linear access, and random access memory
2
Q
How would you access an arbitrary node in a linked list (not just the “head”)?
A
list.next.next x # of times.data