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

相关推荐
杰克尼1 分钟前
BM5 合并k个已排序的链表
数据结构·算法·链表
xiaolang_8616_wjl1 小时前
c++文字游戏_闯关打怪
开发语言·数据结构·c++·算法·c++20
hqxstudying1 小时前
Java创建型模式---单例模式
java·数据结构·设计模式·代码规范
sun0077002 小时前
数据结构——栈的讲解(超详细)
数据结构
ゞ 正在缓冲99%…6 小时前
leetcode918.环形子数组的最大和
数据结构·算法·leetcode·动态规划
努力写代码的熊大8 小时前
单链表和双向链表
数据结构·链表
Orlando cron9 小时前
数据结构入门:链表
数据结构·算法·链表
许愿与你永世安宁13 小时前
力扣343 整数拆分
数据结构·算法·leetcode
Heartoxx14 小时前
c语言-指针(数组)练习2
c语言·数据结构·算法
杰克尼16 小时前
1. 两数之和 (leetcode)
数据结构·算法·leetcode