Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 327 Bytes

File metadata and controls

19 lines (10 loc) · 327 Bytes

Problem 20: Valid Parentheses

Difficulty: Easy

Problem

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

The brackets must close in the correct order

Example

"()" and "()[]{}" are all valid but "(]" and "([)]" are not.