Implement O(1) Stack with Push, Pop, Min

# Introduction In computer science, a stack is an abstract data type that serves as a collection of elements, with two main operations: push, which adds an element to the collection, and pop, which removes the most recently added element that was not yet removed. In this challenge, we will implement a stack with push, pop, and min methods running O(1) time.

|
60 : 00

Click the virtual machine below to start practicing