Meta interview question

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

Interview Answer

Anonymous

16 Oct 2015

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

1