# Wish all the best for myself and my friends..
The COVID is still outbreaking in Shanghai area.. PCR test so may times.. today we have another round of self testing.. Hopefully the plant to be released next Tue..
package main
import (
"fmt"
)
func ValidParentheses(parens string) bool {
count := 0
for _, c := range parens {
if c == '(' {
count++
}
if c == ')' {
count--
}
if count < 0 {
return false
}
}
return count == 0
}
func main() {
res := ValidParentheses("()()()")
fmt.Println(res)
}