首页 › 答案 › 题库 › 才高八斗

用堆排序的方法对n个数据进行排序,首先从堆的根选择出最大(或最小)的元素移到位置()

用堆排序的方法对n个数据进行排序,首先从堆的根选择出最大(或最小)的元素移到位置()
A、1
B、2
C、n一1
D、n
正确答案:D