CodeOath
← All problems

Valid Parentheses

Easy
stringsstack

Determine if a string of ()[]{} is valid — every opening bracket closed by the matching type, in order.

Example:

Input: s = "([)]"
Output: false