Convert following infix expression to the prefix expression.
a - b + c * (d / e - (f + g))
Answer Posted / piyush kumar
a-b+c*(d/e-(f+g))
=a-b+c*(/de-(+fg))
=a-b+c*(T-S) where T=/de,S=+fg
=a-b+c*-(TS)
=-ab+c*-(TS)
=-ab+c*V where V=-TS
=X+Y where X=-ab,c*V=Y
=+XY
=+-abc*V
=+-abc*-TS
=+-abc*-/de+fg
| Is This Answer Correct ? | 3 Yes | 16 No |
Post New Answer View All Answers
List some applications of queue data structure.
What’s the difference between enumeration and iterator interfaces?
What is huffman’s algorithm?
Does treemap sort on key or value?
What's the difference between a hashtable and a hashmap?
Can we insert null in hashset?
Is treeset thread safe?
What are the properties of binary tree?
How do you rotate an AVL tree?
What is type structure?
Explain the term run-time stack?
What is the best complexity of bubble sort?
Define a relation?
Does concat mutate array?
There are 2 int type array data type. One is containing 50 elements, and another one is containing 30 elements. Can we assign the array of 50 elements to an array of 30 elements?