← Back to Difficulty Selection

Code Review (Easy): Finding the Balance

Story

While working on the internal configuration editor at ReviewThat Labs, Lena was tasked with helping developers debug their nested logic. Eva suggested adding a small utility that calculates the length of the largest segment where every opening bracket is properly closed. For instance, in a messy sequence like ")()())", the tool should identify that the longest valid section is "()()" and return a length of four. This helper ensures the team can quickly isolate the most complete parts of their configuration files.

Your Task

Read the story and code, then decide if the code is ready for production or needs improvement.

Hints

What would block an approval? Give me a hint.

Next

Check out Next Topic: Optimizing Dashboard Space

Cookies help us track your progress - nothing extra.