Singly Linked Lists Flashcards

1
Q

Linked List

A

A data structure that represents a sequence of nodes. The head points to the first node.
A linked list does not provide a constant time access to a particular index within the list. If you want to find the kth element in the list,
you need to iterate through k elements.
-Can add and remove elements of the list in constant time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Singly Linked List

A

Each node points to the next node in the linked list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Doubly Linked List

A

Each node has pointers to the previous and the next nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly