Available question text
Given a parentheses string where some characters are fixed and others can be flipped, determine whether you can change the unlocked positions to form a valid parentheses sequence. The core challenge is managing the range of possible open-parenthesis balances as you scan the string (with parity/length constraints), typically solved by a linear greedy check.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2116. Check if a Parentheses String Can Be Valid
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source