+ 1

How to do these notations?

Q1). Given an extremely large file that contains parenthesis, how would you say that the parenthesis are balanced? Q2). Assume that the operators +, -, × are left-associative and ^ is right-associative. The order of precedence (from highest to lowest) is ^, * , +, -. The postfix expression corresponding to the infix expression a + b / c - d ^ e ^ f is.

15th Oct 2020, 7:06 AM
Abhishek Dimri
Abhishek Dimri - avatar
1 Answer
0
I believe the postfix expression would be abc/de^f+-
19th Oct 2020, 12:19 AM
Tom
Tom - avatar