Pergunta de entrevista da empresa Booking.com

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

Resposta da entrevista

Sigiloso

6 de abr. de 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