stack

Valid Parentheses

LeetCode 20 Question Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ’]’, determine if the input string is valid. An input string is valid if: