You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
389 B
8 lines
389 B
5 years ago
|
---
|
||
|
id: queue
|
||
|
title: Queue
|
||
|
---
|
||
7 years ago
|
|
||
|
- Implement a Queue class from scratch with an existing bug, the bug is that it cannot take more than 5 elements.
|
||
7 years ago
|
- Implement a Queue using two stacks. You may only use the standard `push()`, `pop()`, and `peek()` operations traditionally available to stacks. You do not need to implement the stack yourself (i.e. an array can be used to simulate a stack).
|