Use stack(s) to check if a string with parentheses is well-formed. (스택을 사용하여 괄호가 포함된 문자열이 올바른 형식인지 확인)
“(3+4)(2+5)” is well-formed.
“((22)*3+1” is not well-formed.
“)(2+2” is not well-formed.
“{(2+1)(3+2)-22}7” is well-formed.
“{(7+2}*3)” is not well-formed.
Solution
Solution
Solution