CodingReported in a candidate post, Jul 2025
Wrap each digit in parentheses equal to its value, using minimal parentheses
Filed under Myntra
The question
Add parentheses around digits in a string so each digit sits at nesting depth equal to its value, using as few parentheses as possible (213 becomes ((2)1((3))), 210 becomes ((2)1)0).
No write-up yet. Related questions below have one.
Related Myntra questions
Collected from public candidate posts and coding forums. Updated Nov 2026.