K
Multiple choices 15/50
Answer (Choose 1 answer)
Study the following tree and pseudo-code:
Traverse (Node p)
Visit p;
Traverse (p.right);
Traverse (p.left);
When it is applied to the tree above, order of nodes will be visited is:
A. 7, 6, 5, 4, 3, 2, 1, 0
B. None of the others
C. 3, 0, 2, 7, 6, 1, 5, 4
D. 0, 1, 2, 3, 4, 5, 6, 7
Next
10 11 12 13 14
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
43 44 45 46 47 48 49 50