Closed Teknomancer closed 3 years ago
Handle a bounded number of open paranthesis and bail out if more than that is entered in the expressions.
Have a practical number like 32 or something.
Implementing this by bumping up nesting counter when "(" is encountered and bumping down when ")" is encountered.
Handle a bounded number of open paranthesis and bail out if more than that is entered in the expressions.
Have a practical number like 32 or something.
Implementing this by bumping up nesting counter when "(" is encountered and bumping down when ")" is encountered.