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.

Get hands-on with 1400+ tech skills courses.