Domanda di colloquio di Vesttoo

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

Risposta di colloquio

Anonimo

13 giu 2023

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