JUST LAUNCHED
ATS Resume Checker NEW Get past the bots — see your matched roles and an ATS-ready resume. AI Mock Interview NEW Practice FAANG-style rounds with an AI that asks follow-ups.MOST USED
Resume Analyser Get your resume FAANG-ready — only the top 2% make the shortlist. Salary Analyser Check your FAANG-level pay instantly and see your salary gap. AI Quotient Is your resume AI-ready? Score it in under a minute.Given a positive integer n, return ALL strings of length 2*n with well formed round brackets.
Input: 3
Output:
[
“((()))”,
“(()())”,
“(())()”,
“()(())”,
“()()()”
]
Any array containing these five strings in any order is a correct output.
Input Parameters: Function has one argument, integer n.
Output Format: Return array of strings containing all possible well formed round brackets string of length 2*n. Order of strings in the returned array is insignificant, e.g. for n=2 both [“(())”, “()()”] and [“()()”, “(())”] will be accepted.
• 1
• Only use round brackets. ‘(‘ and ‘)’.
There are many possible solutions for this problem. Have a look at the solution provided by us.
O(2n * catalan number(n)).
O(2n * catalan number(n)).
O(2n * catalan number(n)).
Learn to build AI agents to automate your repetitive workflows
Upskill yourself with AI and Machine learning skills
Prepare for the toughest interviews with FAANG+ mentorship
Time Zone:
Join 25,000+ tech professionals who’ve accelerated their careers with cutting-edge AI skills
25,000+ Professionals Trained
₹23 LPA Average Hike 60% Average Hike
600+ MAANG+ Instructors
Webinar Slot Blocked
Register for our webinar
Learn about hiring processes, interview strategies. Find the best course for you.
ⓘ Used to send reminder for webinar
Time Zone: Asia/Kolkata
Time Zone: Asia/Kolkata
Hands-on AI/ML learning + interview prep to help you win
Explore your personalized path to AI/ML/Gen AI success
The 11 Neural “Power Patterns” For Solving Any FAANG Interview Problem 12.5X Faster Than 99.8% OF Applicants
The 2 “Magic Questions” That Reveal Whether You’re Good Enough To Receive A Lucrative Big Tech Offer
The “Instant Income Multiplier” That 2-3X’s Your Current Tech Salary
Join 25,000+ tech professionals who’ve accelerated their careers with cutting-edge AI skills
Join 25,000+ tech professionals who’ve accelerated their careers with cutting-edge AI skills
Webinar Slot Blocked
Time Zone: Asia/Kolkata
Hands-on AI/ML learning + interview prep to help you win
Time Zone: Asia/Kolkata
Hands-on AI/ML learning + interview prep to help you win
Explore your personalized path to AI/ML/Gen AI success
See you there!