0

# I don’t understand the requirement

The tickets office I don’t understand what is the requirement?

8 Answers

+ 1

Hello shimaa, don’t give up make efforts and you will be the greatest coder!!!

+ 10

Shimaa Atfy ,
Briefly describe your question...and post your attempted code..

+ 4

Shimaa Atfy Pls include the task description in the question description

+ 2

Tell the task description of the problem and also show your attempt about it

+ 1

Well, the description of the problem begins with "the problem can be solved using...". This seems to me a hint on the solution, not the problem description. Could you pls double check?
But this seems a lot to be asking you to write code to check if a given string has balanced parenthesis. That is, if every opening one has a matching closing one, and vice-versa.

0

Thank you taha i try

0

The describe: of probalm
The problem can be solved using a stack.
Push each opening parenthesis to the stack and pop the last inserted opening parenthesis whenever a closing parenthesis is encountered.
If the closing bracket does not correspond to the opening bracket, then stop and say that the brackets are not balanced.
Also, after checking all the parentheses, we need to check the stack to be empty -- if it's not empty, then the parentheses are not balanced.

0

I don’t understand what does the problem