3 ms·
Nothing, if you're prepared to say you can pop something onto a stack and push it off.
by jeremysmyth 14y ago
Nothing, if you're prepared to say you can pop something onto a stack and push it off.
- zem 14y agowhat about a deque? the push-pop/shift-unshift distinction is unnecessarily confusing when something doesn't have stack semantics.