Generate Parentheses at ServiceNow
Medium78.2% acceptance
This problem has 75.0% frequency at ServiceNow.
Problem Description
Given `n` pairs of parentheses, write a function to _generate all combinations of well-formed parentheses_.
Read full problem and hintsTopics
Also asked at 39 companies
More ServiceNow Questions
Longest Substring Without Repeating CharactersMediumValid ParenthesesEasyTrapping Rain WaterHardLexicographically Smallest String After Operations With ConstraintMediumNumber of Distinct Roll SequencesHard
View all ServiceNow questions