Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Convert following infix expression to the prefix expression.
a - b + c * (d / e - (f + g))

Answer Posted / naresh

first u need to reverse the given string like this..
))g+f(-e/d(*c+b-a..
after doing this, we need to consider a stack n insert symbolls into the stack whenever u encountered it in the string..
sequence of flow is:
g
f
+
e
d
/
-
c
*
b
+
a
-......
the string obtained is gf+ed/-c*b+a-..
u need to reverse the string for answer i.e
ans is -a+b*c-/de+fg..

Is This Answer Correct ?    28 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a full binary tree ?

937


Explain the Linked List

1062


Is bubble sort faster than selection sort?

796


How does a selection sort work?

817


Which language is best for data structures and algorithms?

857


What is a matrix?

970


How does a dynamic array work?

815


Give one example of right rotation.

873


What is homogeneous array?

812


What do you mean by the term “percolate up”?

906


Define a set?

895


What is application of data structure?

838


What does a bubble chart show?

843


What is bubble sort and selection sort?

928


What is dynamic array in excel?

842