[理工] [資結]-completet binary tree
Which of the following data,inserted in the input order,will produce
a complete search tree?
a)(Bill,Grace,James,John,Lily,Mary)
b)(John,Mary,Grace,Bill,Lily,James)
c)(Mary,Lily,John,James,Grace,Bill)
d)(James,Grace,John,Bill,Lily,Mary)
key值不是數字= =,請問是按照字母插入嗎?,那如果遇到同樣字母要判定是放在右邊
還是左邊?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.138.110.105
推
02/12 19:30, , 1F
02/12 19:30, 1F
推
02/12 19:34, , 2F
02/12 19:34, 2F
→
02/12 19:35, , 3F
02/12 19:35, 3F
→
02/12 19:35, , 4F
02/12 19:35, 4F
→
02/12 19:35, , 5F
02/12 19:35, 5F
→
02/12 19:36, , 6F
02/12 19:36, 6F
→
02/12 19:36, , 7F
02/12 19:36, 7F