Minimum Remove to Make Valid Parentheses at Snapchat

Medium71.3% acceptance

This problem has 50.0% frequency at Snapchat.

Problem Description

Given a string s of `'('` , `')'` and lowercase English characters. Your task is to remove the minimum number of parentheses ( `'('` or `')'`, in any positions ) so that the resulting _parentheses string_ is valid and return **any** valid string. Formally, a _parentheses string_ is valid if and on...

Read full problem and hints

Topics

Also asked at 12 companies


More Snapchat Questions

View all Snapchat questions