Domanda di colloquio di Pine Labs

They asked a stack implementation question for next greater element to the right in an array.

Risposta di colloquio

Anonimo

23 ago 2024

I knew the brute force so I just answered that in 2 mins but they wanted complete stack implementation.