Pregunta de entrevista de Amazon

Balanced parenthesis questions.

Respuesta de la entrevista

Anónimo

23 oct 2017

I solved this one using a stack, but they also asked me to evaluate the answer using a counter; we discussed the trade offs.