資料結構›Ch5 樹狀結構第 24 題/共 48 題
24. Binary Tree、Parent/Child Functions
#DS-05-024中Binary TreeParent/Child Functions
(3%) The following question is a about a binary tree. Denote x as a node. The function parent(x) returns the parent of x. Furthermore, left(x) and right(x) return the left child and right child of node x, respectively. w and y are nodes of a binary tree which is shown below. left(parent(parent(right(w)))) is 5. right(right(parent(parent(y)))) is 9. What are w and y?

📄 交大112
▤完整推導請見《WH 資工筆記 · 資料結構》Ch5 樹狀結構