Convert following infix expression to the prefix expression.
a - b + c * (d / e - (f + g))
Answer Posted / p.divya poojitha
a-b+c*(/de-(+fg))
a-b+c*(t-s) if t=/de;s=+fg
a-b+c*(-ts)
-ab+*c-ts
+-ab*c-ts
sol is +-ab*c-/de+fg
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why is quicksort so fast?
Can we override compareto method for enumerations?
Describe the complexity of Binary search
How many parts are there in a declaration statement?
Is vector synchronized?
Why is hashmap used?
What do you mean by general trees?
Define an algorithm. What are the properties of an algorithm?
What is time complexity of hashmap?
What data type is enum?
What is complexity of bubble sort?
Which is better hashmap or arraylist?
Write an algorithm through which the inserting and deleting of elements can take place in circular queue?
How does a hashmap work?
Can we create a null as a key for a map collection?