• 2022-05-29
    在平均情况下,快速排序时间复杂度为( ),空间复杂度为( );在最坏情况下(如初始记录已有序),快速排序的时间复杂度为( ),空间复杂度为( )。
    A: O(n)
    B: O(log2n)
    C: O(nlog2n)
    D: O(n²)