Data Structures Flashcards
1
Q
How would you examine items below the top of a stack?
A
peek()
2
Q
How would you find out how many items are in a stack?
A
pop until youre out
How would you examine items below the top of a stack?
peek()
How would you find out how many items are in a stack?
pop until youre out