作者tobedesigner (乱)
看板TransCSI
标题[问题] 二元树的范围
时间Wed Oct 22 15:58:32 2008
.....
Suppose that a binary tree, generated randomly is geven below:
B
/ \
A E
/ \ \
D G H
/ \
F C
where A,........,G are the agents in the organization.
(2)We now define the rank of each agent as the number of subordinates
he/she manages. For instance, the ranks of agents B,A and F are 7,
4 and 0 respectively. Please explain concisely how to render a list
of agents with ranks in a non-increasing order.
我想请问这一题是在问什麽东西?
--
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.60.64.106