Amazon Interview Question

Write a program to evaluate an equation for example 1+2-3 (no brackets)

Interview Answer

Anonymous

Sep 2, 2019

I immediately thought of infix tree but since there is no brackets, the answer they were looking for was to use String.split() and probably a stack to help evaluation in correct order