Back to Question

Valid Parentheses

Question Explain

Given a string `s` containing just '(', ')', '{', '}', '[' and ']', determine if the input string is valid. Must use a Stack data structure.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.