Just wanna have it checked if i'm doing this rightly...
i was given an expression to translate it into a polish notation and traversals.
the expression is
{( a + b ) - c } * { d * (e / f + g)}
here's my answer:
POSTFIX : a b + c - d e f g + / * *
PREFIX : * - + a b c * d / e + f g
PRE-ORDER : * - + a c b * d / e + f g
POST-ORDER: a b + c - f g + e / d * *
IN-ORDER : a + b - c * d * e / f + g