Adobe India Hackathon - Mock Test 2

Select your answers. Once selected, you cannot change them.

Section 1: MCQs

Section 2: DSA Problem

Longest Balanced Substring

You’re given a string of parentheses like ()(()))((). Your task is to find the length of the longest substring that is balanced (every opening ( has a matching closing )).

Write your solution below: