LC: 716. Max Stack - spiralgo/algorithms GitHub Wiki

716. Max Stack:

The Essence:

The aim of the question is to teach us how to design a Stack class with some extra methods like peekMax(), and popMax(). So, the problem solver should learn how to create a class in the programming language of choice first, then investigate the default Stack implementation to understand its behavior.

Details: