Topic 7 - Stack: A Linked Implementation Flashcards

1
Q

In the LinkedStack class, the nodes in the linked list are represented by?

A

the LinearNode class.

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

What does the attribute “top” refer to in the LinkedStack class?

A

a reference to the first node ie. a reference to the linked list

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

What type is the attribute “top”?

A

LinearNode

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