Pick the fix
Root 1 has a left child 2 (which has a left child 4) and a right child 3. What does the right-hand view show?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A 1, 3, 4
Right: row three has only 4, so it is visible from the right.
Each row shows exactly one node from the right, even when it hangs from the left side of the tree.
Why not the others?
- B 1, 3. Row three still has a node; 4 is the rightmost in that row.
- C 1, 2, 4. 3 is to the right of 2 in the second row.