题目
题目
单项选择题

Consider sorting a list of n integers, what is the time complexity of the standard merge sort implementation if we know in advance that the input list is already sorted? Note: n is the number of elemenets in the list.

查看解析

查看解析

标准答案
Please login to view
思路分析
The question asks about the time complexity of the standard merge sort when the input list is already sorted, with n elements to sort. Option a: O(log n). This would be the time complexity for very small tasks or certain logarithmic-height operations, but merge sort process......Login to view full explanation

登录即可查看完整答案

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

类似问题

更多留学生实用工具

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