NeetCode #795LC-678MediumGreedyNC 150NC 250
← Back to All Problems#795 · #678 · Valid Parenthesis String(有效的括号字符串)
📌 Problem Statement & Constraints
Given a string
s containing only (, ) and *, where * may be treated as (, ), or the empty string, return true if s can be a valid parenthesis string. Constraints: 1 <= s.length <= 100.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!