Challenge: Longest Continuous Balanced Parenthesis

Learn how to find the length of the longest continuous balanced substring in a string that consists of parentheses.

Problem

Given a string of opening and closing parentheses, you need to find the length of the longest substring that has balanced parentheses.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.