| title | Algorithm4 Java Solution 1.3.48 | ||
|---|---|---|---|
| date | 2019-07-28 08:47:27 +0800 | ||
| draft | false | ||
| tags |
|
||
| categories |
|
Two stacks with a deque. Implement two stacks with a single deque so that each operation takes a constant number of deque operations (see Exercise 1.3.33).
code: