Problem 1614 · Easy

Maximum Nesting Depth of the Parentheses

Find the deepest level of nested parentheses by tracking the open count while scanning. The visual shows the depth rising and falling along the string.

Open the interactive visualisation