Amazon Interview Question

Balanced parenthesis questions.

Interview Answer

Anonymous

Oct 23, 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.