Stack and Queue Implementations
Goldman Sachs interview questions · Medium · Coding round · 6 tests
Implement a FIFO queue using stacks and a LIFO stack using queues, packaged together in one factory for practice.
The full question, tests and reference solution are available with a plan that includes Goldman Sachs.
Run your code with Ctrl+Enter to see results.