Stack with Max in O(1)
Filed under Zuora
The question
Implement a stack that retrieves the maximum element in O(1) time.
No write-up yet. Related questions below have one.
Related Zuora questions
Collected from public candidate posts and coding forums. Updated Nov 2026.