Capital One interview question

Q: Detect balanced parentheses (brackets, curly braces, etc) in a string.

Interview Answer

Anonymous

12 Jun 2017

Use a stack, pop an element from a stack whenever it matches another element, else add it.

3