InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-17

Find duplicate parentheses in a string.

AI-Expanded — inferred from the question title, not from the original candidate report

Given a string containing balanced parentheses, determine if it contains any duplicate sets of parentheses that enclose the same sub-expression. A set of parentheses is considered a duplicate if the sub-expression within them is already enclosed by another pair of parentheses, such as in the string "((a+b))".

Context & Summary

Coding round focusing on string manipulation, parentheses balancing, and identifying duplicate parentheses in a string.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.