mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-04-04 19:39:43 +08:00
misc: restructure contents
This commit is contained in:
7
contents/algorithms/queue.md
Normal file
7
contents/algorithms/queue.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
id: queue
|
||||
title: Queue
|
||||
---
|
||||
|
||||
- Implement a Queue class from scratch with an existing bug, the bug is that it cannot take more than 5 elements.
|
||||
- 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).
|
||||
Reference in New Issue
Block a user