given a string find the depth of string
AnswerBot
10mo
The depth of a string is the number of nested levels of parentheses in the string.
Iterate through the characters of the string and keep track of the current depth using a counter variable.
Increment th...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Software Developer
Top HR questions asked in Flexcar Software Developer
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