unlimit Posted on May 25, 2023 Balanced Parenthesis #javascript #dsa #interview How can a generic program be implemented in JavaScript to find and return the number of unbalanced parentheses in a given string? input1: '()))' output1: 2 input2: '(())' output2: 0 input3: '))((' output3: 4 Solution: The solution is: Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)