Skip to main content

2 docs tagged with "Stack"

View All Tags

Implement Queue using Stacks

Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue...

Min Stack

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.