Easy · Stack

Valid Parentheses

Given a string of brackets, decide whether every bracket is closed by the same type, in the right order.

s = "([]{})"  → true
s = "([)]"    → false
Record your take

1 way to solve it.