Which order is this?(pre order, in order, post order) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which order is this?(pre order, in order, post order)

"Data structure question" ( -B + SQRT ( B2 – (4*A*C*D*E) ^ 5) ) / 2*A*sin(x) And how to show it in other orders?

30th Nov 2020, 4:05 PM
Coder
Coder - avatar
1 Answer
+ 2
Looks like in-order to me. In-order: a + b - c Pre-order: - c + a b Post-order: a b + c - In order: Op in the middle of two params Pre-order: Op before two params Post-order: Op after two params So to see it clearly: In-order: ((a + b) - c) Pre-order: (- c (+ a b)) Post-order: ((a b +) c -)
30th Nov 2020, 6:48 PM
Lam Wei Li
Lam Wei Li - avatar