Minimum deletions to balance a parentheses string

0
Remix

A string contains only ( and ). Delete as few characters as possible so the rest is balanced, and return the resulting string.

GleanCodingLast asked Sep 2026
No answer yet. Write the first one; the best answer gets endorsed.