Leetcode #921 Minimum Add to Make Parentheses Valid
This question is not that difficult. It can be solved using 2 structures to keep track of the open and closing parentheses.
Thought process:
First, check if the string is empty. Return 0 if true.
Loop through the string, keep track of the opening pa...
michelletanpy.hashnode.dev1 min read