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

相关推荐
无聊的小坏坏8 分钟前
一文讲通:二分查找的边界处理
数据结构·c++·算法
化学在逃硬闯CS35 分钟前
Leetcode110.平衡二叉树
数据结构·c++·算法·leetcode
ccLianLian1 小时前
算法基础·C++常用操作
开发语言·数据结构·c++
堕2742 小时前
java数据结构当中的《Lambda表达式》
java·数据结构·python
wengqidaifeng2 小时前
数据结构(三)栈和队列(下)队列:程序世界的秩序之美
数据结构
程序员酥皮蛋2 小时前
hot 100 第二十三题 23.反转链表
数据结构·算法·leetcode·链表
TracyCoder1232 小时前
LeetCode Hot100(51/100)——155. 最小栈
数据结构·算法·leetcode
shentuyu木木木(森)3 小时前
单调队列 & 单调栈
数据结构·c++·算法·单调栈·单调队列
菜鸡儿齐4 小时前
leetcode-最长连续序列
数据结构·算法·leetcode
wengqidaifeng4 小时前
数据结构---链表的奇特(下)双向链表的多样魅力
c语言·数据结构·链表