Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 392 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 392 Bytes

17.Valid Parentheses

Description

Given a string containing just the characters '(', ')', '{' , '}', '[', ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.

Example

Input: {[()]}
Output: true

From

LeetCode