Capital One Interview Question

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

Interview Answer

Anonymous

Jun 12, 2017

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

3