Domanda di colloquio di Meta

Write a program to identify correct use of parenthesis

Risposta di colloquio

Anonimo

19 apr 2017

Used a stack to push on when you read an open and pop when you read a close. Then updated a count to ensure the correct use.