A function to find if a string has matching parenthesis or not
Anonymous
Use a stack! Push when finding an opening parenthesis, when you find a closing one, pop an element if there is one, if there isn't, return false. After you are finish processing every element, if the stack is not empty, return false, else return true.
Check out your Company Bowl for anonymous work chats.