Lists, Stacks & Queues Flashcards

1
Q

What are the 5 main operations of a Stack?

A

Peek()
Pop()
Push()
IsEmpty()
IsFull()

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

What are the 3 definitions in the Stack

A

Top: Top of the stack
Stack Array
MAX_ITEMS: Max number of items in the stack

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

What are the 4 main Operations of a Queue

A

Enqueue
Dequeue
IsFull
IsEmpty

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

What are the 5 main definitions in a Queue

A

Front
Rear
noOfItems
maxSize
queueArray

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

What are the 3 definitions inside the node class in LinkedList

A

data
next
prev

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

What are the definitions of a Doubly LinkedList

A

2 Node types called head & tail

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

What are the definitions of a Singly LinkedList

A

A Node Type called head

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

Main methods/operations of a LinkedList

A

add
remove
Insert
printForward

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