Back to QuestionsPractice with This Question
Design a Set of Stacks (Capacity Limit)
53.2K views•Asked at Stripe•
Medium
Question Explain
Implement a `SetOfStacks` data structure where a new stack is created once the previous one exceeds a threshold capacity. Implement `push` and `pop`.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.