DoorDash logoDoorDash
CodingMembers

Coding: Minimum Parenthesis Deletions

Members only

Given a string containing only `(` and `)`, return the minimum number of characters that must be deleted to make it valid. The follow-up asks for the deletion indices rather than only the count.

SWE
string
greedy
stack
easy
Frequency
Single report
Last asked
2026-08-16
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...