資料結構›Ch5 樹狀結構
第 24 題/共 48 題
◀ DS 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 樹狀結構
本章題號 · 21–40 / 48