C# checking if expression is brackets valid [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . The expression: "( a[i]+{-1}*(8-9) )" should return true since it is valid to write syntax like this. Every left bracket has a right closer in the correct place and all brackets are at legal positions. I tried to do this via one stack and I know where I'm wrong but I want to know