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

相关推荐
STY_fish_20122 小时前
可持久化线段树
数据结构
C雨后彩虹5 小时前
猜密码问题
java·数据结构·算法·华为·面试
梭七y6 小时前
【力扣hot100题】(105)三数之和
数据结构·算法·leetcode
cpp_250110 小时前
P8597 [蓝桥杯 2013 省 B] 翻硬币
数据结构·c++·算法·蓝桥杯·题解
郝学胜-神的一滴10 小时前
Python类型检查之isinstance与type:继承之辨与魔法之道
开发语言·数据结构·python·程序人生
不忘不弃10 小时前
把IP地址转换为字符串
数据结构·tcp/ip·算法
发疯幼稚鬼10 小时前
网络流问题与最小生成树
c语言·网络·数据结构·算法·拓扑学
wen__xvn11 小时前
代码随想录算法训练营DAY3第一章 数组part02
java·数据结构·算法
一起养小猫11 小时前
LeetCode100天Day8-缺失数字与只出现一次的数字
java·数据结构·算法·leetcode
梭七y11 小时前
【力扣hot100题】(115)缺失的第一个正数
数据结构·算法·leetcode