Leetcode 921. Minimum Add to Make Parentheses Valid
Oct 10, 2024 · 3 min read · Link to Problem and LeetCode's Solution. Intuition We have to find number of extra brackets that would be required. if (() -> at last 1 bracket would be added => +1 if ((())A -> at we need (A) => +2 brackets if ((( -> we need 3 brackets i.e length...
Join discussion


