I don’t understand the requirement
The tickets office I don’t understand what is the requirement?
Hello shimaa, don’t give up make efforts and you will be the greatest coder!!!
Shimaa Atfy , Briefly describe your question...and post your attempted code..
Shimaa Atfy Pls include the task description in the question description
Tell the task description of the problem and also show your attempt about it
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.
Thank you taha i try
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.
I don’t understand what does the problem