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

相关推荐
黛色正浓几秒前
leetCode-热题100-普通数组合集(JavaScript)
java·数据结构·算法
辞砚技术录44 分钟前
MySQL面试题——索引、B+树
数据结构·数据库·b树·面试
666HZ6661 小时前
数据结构1.0 数据结构在学什么
数据结构·算法
余瑜鱼鱼鱼1 小时前
Java数据结构:从入门到精通(五)
数据结构
空空潍1 小时前
hot100-滑动窗口最大值(day11)
数据结构·c++·算法·leetcode
R-G-B2 小时前
BM28 二叉树的最大深度
数据结构·算法·二叉树·bm28·二叉树的最大深度
菜鸟233号3 小时前
力扣416 分割等和子串 java实现
java·数据结构·算法·leetcode
求梦8203 小时前
【力扣hot100题】缺失的第一个正数(12)
数据结构·算法·leetcode
黎雁·泠崖3 小时前
二叉树实战进阶全攻略:从层序遍历到OJ题深度解析
c语言·数据结构·leetcode
散峰而望3 小时前
【算法竞赛】顺序表和vector
c语言·开发语言·数据结构·c++·人工智能·算法·github