Pergunta de entrevista da empresa Pine Labs

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

Resposta da entrevista

Sigiloso

23 de ago. de 2024

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