Linked Lists Flashcards

1
Q

What is a node

A

An object that always at least holds the value and a pointer pointing to the next node

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

What is the head

A

First node

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

What is the tail

A

Points to the ending node

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

~linkedlists()

A

Deallocates all remaining dynamically allocated memory (all remaninting nodes)

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

Push front

A

Inserts a data value at the round end of the list

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

Pop front

A

Removes value at the front end of the lift. Does nothing if the list is empty

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

Why no pop back for singly linked lists

A

To as our

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