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!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
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