Comment Comment by RadioactiveMan If you're working with multiple symbols, such as (), {}, and [], you'd want to use a stack. Closing a child ( before its parent { would be an error. parent RadioactiveMan 11 years ago