打卡｜Uber｜Minimum Removals for Valid Parenthesis
Recent Uber interview problem.
This question has recently emerged Uber in the interview.
You are given a string of parenthesis. Return the minimum number of parenthesis that would need to be removed in order to make the string valid. "Valid" means that each open parenthesis has a matching closed parenthesis.
Given a string of parentheses, there may be mismatches, such as a right half bracket without a left parenthesis', or two left half brackets with only one right half bracket '(()', etc. The writing algorithm returns the number of mismatched parentheses.
Click. Read the original text Check out the Python Algorithm Live Series
Just order one if you like Share. Like it I'm watching Three companiesLet's go!
Send to the author
Press and hold the QR code to transfer money to me
As a result of Apple's new rules, WeChat's iOS version of the appreciation feature has been turned off to support public numbers via QR code transfers.
Go to "Discovery" - "Take a look" browse "Friends are watching"
sent to have a look