Pregunta de entrevista de Booking.com

Check the string for the correct using of parenthesis. They can be (), [], {}.

Respuesta de la entrevista

Anónimo

6 abr 2016

Use stack to collect opening parenthesis and check correctness when find closing one. At last stack must be empty to mark sring as correct.

5