From c6bc37a26cd0e9c7b53d8aa91ee183db05d8f4f3 Mon Sep 17 00:00:00 2001 From: Deven <63876261+devenperez@users.noreply.github.com> Date: Sat, 29 Nov 2025 20:33:08 -0500 Subject: [PATCH] Create README - LeetHub --- 0678-valid-parenthesis-string/README.md | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 0678-valid-parenthesis-string/README.md diff --git a/0678-valid-parenthesis-string/README.md b/0678-valid-parenthesis-string/README.md new file mode 100644 index 0000000..ea463e5 --- /dev/null +++ b/0678-valid-parenthesis-string/README.md @@ -0,0 +1,29 @@ +
Given a string s containing only three types of characters: '(', ')' and '*', return true if s is valid.
The following rules define a valid string:
+ +'(' must have a corresponding right parenthesis ')'.')' must have a corresponding left parenthesis '('.'(' must go before the corresponding right parenthesis ')'.'*' could be treated as a single right parenthesis ')' or a single left parenthesis '(' or an empty string "".+
Example 1:
+Input: s = "()" +Output: true +
Example 2:
+Input: s = "(*)" +Output: true +
Example 3:
+Input: s = "(*))" +Output: true ++
+
Constraints:
+ +1 <= s.length <= 100s[i] is '(', ')' or '*'.