diff --git a/20-valid-parentheses/README.md b/20-valid-parentheses/README.md new file mode 100644 index 0000000..2fa17b8 --- /dev/null +++ b/20-valid-parentheses/README.md @@ -0,0 +1,36 @@ +
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is valid if:
+ ++
Example 1:
+ +Input: s = "()" +Output: true ++ +
Example 2:
+ +Input: s = "()[]{}"
+Output: true
+
+
+Example 3:
+ +Input: s = "(]" +Output: false ++ +
+
Constraints:
+ +1 <= s.length <= 104s consists of parentheses only '()[]{}'.