学堂在线数据结构(上)(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

相关推荐
SmoothSailingT3 分钟前
408每日一题——数据结构
数据结构·考研·408
im_AMBER2 小时前
Leetcode 99 删除排序链表中的重复元素 | 合并两个链表
数据结构·笔记·学习·算法·leetcode·链表
s砚山s3 小时前
代码随想录刷题——二叉树篇(十三)
数据结构·算法
ulias2124 小时前
AVL树的实现
开发语言·数据结构·c++·windows
黎雁·泠崖4 小时前
二叉树知识体系全梳理:从基础到进阶一站式通关
c语言·数据结构·leetcode
蜕变菜鸟4 小时前
JS的Object.keys()和sort()排序的用法
数据结构·算法
镜中人★4 小时前
408数据结构考纲知识点(更新中)
数据结构
杜子不疼.4 小时前
【LeetCode30_滑动窗口 + 哈希表】:三招搞定“串联所有单词的子串”
数据结构·算法·哈希算法
妹妹够啦4 小时前
1. 两数之和
数据结构·算法·leetcode
vyuvyucd4 小时前
Java数组与Arrays类实战指南
数据结构·算法