I saw this answer to the question about designing a stack with findmin in O(1) time:
https://stackoverflow.com/a/3435998/2653179
What if the request is the same:
Devise a stack-like data structure that does push, pop and min (or max) operations
in O(1) time. There are no space constraints.
But deletemin also should be in O(1)? Is it possible?