easyDSA

Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. A string is valid if open brackets are closed in the correct order.
Ensure function signatures match starter code to run test cases.
index.js
Loading...

Test Case #1

Input: "()[]{}"

Expected: true

Solve Valid Parentheses | Algorithmic Interview Drill