on using Int() only two test cases pass
using void () show compilation error
Balanced parenthesis
code goes wrong for the case
()()(())
also int type is giving 2 correct answers bcz at the end u need to check if the stack is empty or not
please try to modify ur code
in case u are unable to modify it please ping me
tried this approach still show compilation error
using switch this can be done or
through this approach it can also done
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.