当前位置:网站首页>Insert sort directly
Insert sort directly
2022-06-23 03:36:00 【@Landscape post yuan】
Direct insert sort

/* Yes along order surface L do straight Pick up insert Enter into row order */
void InsertSort ( SqList *L){
int i, j;
for (i = 2; i <= L- > length ; i++) {
/* Need to be take L- >r[i] insert Enter into Yes order Son surface */
if (L->r[i] < L- >r[i - 1]) {
/* set up Set up whistle The soldiers */
L->r [0] = L- >r[i];
for (j = i - 1; L- >r[j] > L- >r [0]; j - -)
/* remember record after move */
L- >r[j + 1] = L- >r[j];
/* insert Enter into To just indeed position Set up */
L->r[j + 1] = L->r [0];
}
}
}边栏推荐
- Hierarchical attention graph convolution network for interpretable recommendation based on knowledge graph
- centos7 安装 MySQL 及配置 innodb_ruby
- Preliminary sequencing problem
- On the way home from the Spring Festival transportation, traffic visualization will escort you
- Initialize MySQL Gorm through yaml file
- 1-1VMware介绍
- Detailed discussion on modular architecture design of MCU firmware
- Learning summary of spanquery source code
- Tcapulusdb Jun · industry news collection (IV)
- 数据加密技术之源代码加密
猜你喜欢

【曾书格激光SLAM笔记】Gmapping基于滤波器的SLAM

innodb_ruby 视角下 MySQL 记录增删改
![Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]](/img/ca/672bfe49c8123da8679b2abeb43a2e.jpg)
Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]

R tree of search tree

Gakataka student end to bundle Version (made by likewendy)

【贪心】leetcode991. Broken Calculator

Banknext microservice: a case study

Analysis on the development of duty-free industry in Hainan Province in 2021: the implementation of the new policy makes the duty-free market in Hainan more "prosperous" [figure]

Using jhipster to build microservice architecture

Jmeter- (V) simulated user concurrent login for interface test
随机推荐
Build information query applet by using micro build
【二分】leetcode1011. Capacity To Ship Packages Within D Days
The difference between code39 and code93
[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]
One of the touchdesigner uses - Download and install
【owt】owt-client-native-p2p-e2e-test vs2017构建 3 : 无 测试单元对比, 手动生成vs项目
[Alibaba middleware technology series] "Nacos technology" service registration and discovery related principle analysis
[burning] Tencent cloud high tech computing platform HTPC cloud elastic cluster release!
R tree of search tree
How to save the model obtained from sklearn training? Just read this one
Simple analysis of easygbs compatible with old version HLS streaming address method [with code]
Is LinkedList a one-way linked list or a two-way linked list?
Analysis on the development of China's graphene industry chain in 2021: with the support of energy conservation and environmental protection policies, the scale of graphene industry will continue to e
Goframe framework (RK boot): realize distributed log tracing
Nezha panel modifies logo, small icon and other information
纳瓦尔宝典:不靠运气致富的原则
Uploading logs using loghub log4j appender
Tencent cloud tcapulusdb helps tmeland, the first virtual Music Carnival in China, and tens of thousands of people cross the new year together!
Static code block, code block, constructor execution order
Analysis on demand and market scale of China's steamed stuffed bun industry in 2020 [figure]