Data Structures Flashcards

1
Q

How would you examine items below the top of a stack?

A

peek()

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

How would you find out how many items are in a stack?

A

pop until youre out

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