题目
题目
单项选择题

zyBooks_18_13 We are in the middle of using merge sort to sort the list (3, 2, 1, 7, 10, 4, 5, 9). Assuming we just got two sorted sublists (4,10) and (5,9), the next step is to merge the two sublists. During the merge of the two sublists, what is the second value to collect into the merged list?

选项
A.1
B.4
C.2
D.5
查看解析

查看解析

标准答案
Please login to view
思路分析
We’re at a merge step with two sorted sublists: (4, 10) and (5, 9). The merging process compares the heads of both lists and appends the smaller head to the merged result. Option 1: '1' is not present in either head position or immediate n......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!