Implement a stack with get_min
method that takes O(1) time.
Stack with get_min()
method can be implemented by using 2 simple stacks. The first one will be used to store items and provide ordinary operations. The second stack will make store only minimal items per push.
make
helps generate main and test binaries to run tests or interactive main program.
make build
make run
make test
make clean