Pergunta de entrevista da empresa Ethos Group

Determine if a set of paranthesis syntax is valid.

Resposta da entrevista

Sigiloso

15 de jul. de 2019

I just used a for loop and if statements which became O(N^2) but the best approach would probably be using a Stack.