题目
题目
单项选择题

zyBooks_18 Assume radix sort has sorted integers by absolute value to produce the array (-12, 23, -42, 73, -78), and is about to build the negative and non-negative buckets to complete the sort. What integers will be placed into the negative bucket? 

选项
A.-42, 73, -78
B.-12, 23
C.-12, -42, -78
查看解析

查看解析

标准答案
Please login to view
思路分析
To determine which integers go into the negative bucket, we need to recall how radix sort by absolute value would partition numbers before placing them into sign-based buckets. First, list the given numbers with their signs and absolute values in the order provided: -12 (abs 12), 23 (abs 23), -42 (abs 42), 73 (abs ......Login to view full explanation

登录即可查看完整答案

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

类似问题

更多留学生实用工具

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