DSA Key Problems

Valid Parentheses

Given a string containing only bracket characters, determine whether every opening bracket is closed by the same type in the correct nesting order.