Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 469 Bytes

086.md

File metadata and controls

9 lines (5 loc) · 469 Bytes

Daily Coding Problem: Problem #86 [Medium]

Good morning! Here's your coding interview problem for today.

This problem was asked by Google.

Given a string of parentheses, write a function to compute the minimum number of parentheses to be removed to make the string valid (i.e. each open parenthesis is eventually closed).

For example, given the string "()())()", you should return 1. Given the string ")(", you should return 2, since we must remove all of them.