BOpeepster3598 BOpeepster3598
  • 24-05-2023
  • Mathematics
contestada

Question No:1 Marks:04 [CLO-2] We are given a string having parenthesis like below "(((X)) (((Y))))" We need to find the maximum depth of balanced parenthesis, like 4 in the above example. Since 'Y' is surrounded by 4 balanced parentheses. If parenthesis is unbalanced then return -1.

Respuesta :

Otras preguntas

When powdered iron is left exposed to the air, it rusts. explain why the mass of the rust is greater than the mass of the powdered iron?
What is (-2 - -6 ÷ -2) × 12 ÷ -6 ?
I need help with number four I am not understanding the question!
What is the coefficient of x^3 in 2x^7+9x^3+6x+4 ? 9 4 6 2
Describe the roman senate and list 3-4 characteristics
During photosynthesis, plants capture light energy from the Sun to break the bonds in reactants, such as carbon dioxide and water, and form carbon-containing mo
Which expression is equivalent to 4^6 ⋅ 4^−8? A: 1/4^2 B: 1/4^14 C: 4^2 D: 4^14
Where are retirees and their family members positioned during a retirement ceremony?
Janet works as a senior software developer in a multinational it firm. she prefers to work as an individual contributor and volunteers to work on challenging pr
Help me find the last quotient please it is 3 31