Meta Interview Question

Q. Balance a String of unbalanced Parenthesis ? Q. Iterator class for binary tree.

Interview Answer

Anonymous

Oct 16, 2015

Use stack and push each parenthesis and if anything is missing, add - as you need to balance.

1