Balanced parentheses

Given  strings of brackets, determine whether each sequence of brackets is balanced. If a string is balanced, return YES. Otherwise, return NO.

Leave a Reply

Your email address will not be published. Required fields are marked *