![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
liu_yufan
这个作者很懒,什么都没留下…
展开
-
顺序表的创建和翻转 C语言实现
要把一个顺序表就地逆置(辅助空间为o(1)),可以将表中的开始结点与终端结点互换,第二个结点和倒数第二个结点互换,如此反复,就可以将整个表逆置了。 #include<stdio.h> #define ListSize 20 typedef int DataType; typedef struct{ DataType data[ListSize]; int length; }S...原创 2018-07-24 21:56:47 · 1619 阅读 · 0 评论 -
顺序表的快速排序
用c语言建立顺序表,实现快速排序。 这里是用了两个函数实现的,一个分割函数,一个递归。 #include<stdio.h> #define ListSize 20 typedef int DataType; typedef struct{ DataType data[ListSize]; int length; }Seqlist; Seqlist CreateList(Se...原创 2018-07-31 23:02:17 · 4791 阅读 · 1 评论