Meta logoMeta
Coding·20 minMembers

Minimum Add to Make Parentheses Valid

Members only

LC 921 — count the minimum insertions (of `(` or `)`) needed to make a parens string valid. Surfaced as the first E5 phone-screen problem.

SWE
string
stack
greedy
easy
Frequency
Single report
Last asked
2026-04-23
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...