学堂在线数据结构(上)(2023春)邓俊辉 课后作业错题整理

  1. The reverse number of a sequence is defined as the total number of reversed pairs in the sequence, and the total number of element comparisons performed by the insertion sort in the list of size n is:

一个序列的逆序数定义为该序列中的逆序对总数,规模为n的列表中插入排序进行的元素比较总次数为:

答案:1B

  1. For ordered subsequences (set their length to k) during insertion sorting.
    对于插入排序过程中的已排序子序列(设其长度为k):

答案:2C

相关推荐
im_AMBER13 小时前
Leetcode 67 长度为 K 子数组中的最大和 | 可获得的最大点数
数据结构·笔记·学习·算法·leetcode
buyue__14 小时前
C++实现数据结构——链表
数据结构·c++·链表
Ayanami_Reii15 小时前
进阶数据结构应用-SPOJ 3267 D-query
数据结构·算法·线段树·主席树·持久化线段树
Genevieve_xiao16 小时前
【数据结构与算法】【xjtuse】面向考纲学习(下)
java·数据结构·学习·算法
仰泳的熊猫16 小时前
1031 Hello World for U
数据结构·c++·算法·pat考试
liu****16 小时前
12.C语言内存相关函数
c语言·开发语言·数据结构·c++·算法
FMRbpm16 小时前
栈练习--------从链表中移除节点(LeetCode 2487)
数据结构·c++·leetcode·链表·新手入门
C雨后彩虹17 小时前
矩阵扩散问题
java·数据结构·算法·华为·面试
sin_hielo17 小时前
leetcode 3432
数据结构·算法·leetcode