Strings

Valid Parentheses

easy
Given a string `s` containing just the characters `'('`, `')'`, `'{``, `'}'`, `'['` and `']'`, determine if the input string is valid. Valid means: open brackets closed by the same type, in the correct order, and every close has a matching open. Example: `isValid("()[]{}")` → `true`.
Hint steps(0/3 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.

  3. 3

    Complete previous step or reveal to unlock this hint.