Capital One Interview Question

Tell if an input string of parenthesis was balanced

Interview Answers

Anonymous

Oct 31, 2018

you could use a stack and push when open parenthesis and pop when closing parenthesis I think

Anonymous

Aug 8, 2017

Similar to verifying a palindrome; simpler

1