make balanced parenthesis
AnswerBot
4mo
Use a stack to ensure balanced parenthesis in a string
Iterate through each character in the string
If the character is an opening parenthesis, push it onto the stack
If the character is a closing parent...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Software Engineer
Top HR questions asked in Meta Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app