Write a java program to convert inorder expression to preorder expression in optimized way. Input: a+b*c Output: +a*bc | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Write a java program to convert inorder expression to preorder expression in optimized way. Input: a+b*c Output: +a*bc

Can anyone help me out with this?

20th Apr 2019, 10:17 AM
Abhijeet Farakate
Abhijeet Farakate - avatar
1 Réponse
0
You can look up reverse-polish-notation. Than try to implement it yourself and if you than have a problem ask those questions here. Please dont ask for full programms here in the q&a section.
20th Apr 2019, 10:43 AM
Dragonxiv
Dragonxiv - avatar