โ† Arista Networks questions
CodingReported in a candidate post, Jul 2025

Design a stack with getMin in O(1)

Filed under Arista Networks

The question

Design a stack data structure that supports push, pop, and retrieving the minimum element in O(1) time and O(1) extra space.

No write-up yet. Related questions below have one.

Related Arista Networks questions

Collected from public candidate posts and coding forums. Updated Nov 2026.