bars
My Practice
search
circle-xmark
⌘
Ctrl
k
copy
Copy
chevron-down
Chapter 8 Data Structure
Stack & Queue
hashtag
Queue
Operations:
push:
O(1)
pop:
O(1)
Top:
O(1)
Always used for BFS
hashtag
Stack
Operations:
push:
O(1)
pop:
O(1)
Top:
O(1)
Previous
Chapter 8 Data Structure
chevron-left
Next
Problem 232: Implement Queue using Stacks
chevron-right
Last updated
6 years ago
Queue
Stack