(M,9,5) (F,7,4) (N,3,6) (Q,8,7) (P,1,3) (R,4,8)
(P,1,3) (N,3,6) (R,4,8) (F,7,4) (Q,8,7) (M,9,5)
void f2()-Perform pre-order traversal for the left branch of the BST, but display to file f2.txt nodes with color>4 only.
Hint: Copy the function preOrder(...) to function preOrder2(...) and modify it.
Output in the file f2.txt must be the following (line 1: Breadth first traversal, line 2: pre-order traversal)
Zoom
+ 80%
Close