Vesttoo interview question

implementing numeric stack class in JS with pull, push, peek and getting the max number in O(1)

Interview Answer

Anonymous

13 Jun 2023

using array push and pull, array[length - 1] for peek, and managing array of max numbers