
数据结构
文章平均质量分 97
NewGe6
路虽远,行则将至。
展开
-
第十三届蓝桥杯大赛软件赛省赛 Java题解集合
第十三届蓝桥杯大赛软件赛省赛 Java 题解集合原创 2022-04-09 22:50:03 · 6169 阅读 · 5 评论 -
顺序表的查找——按位查找和按值查找
数据结构学习中,记录学习过程,顺便分享给学习中的你!感谢你的关注、点赞、收藏支持!1.按位查找//按位查找 时间复杂度O(1) #define InitSize 10typedef struct{ ElemType *data; int MaxSize; int length;} SeqList;ElemType GetElem(SeqList L, int i){ ret...原创 2020-05-05 17:06:34 · 8592 阅读 · 0 评论 -
顺序表的基本操作——插入与删除
数据结构学习中,记录学习过程,顺便分享给学习中的你!感谢你的关注、点赞、收藏支持!顺序表的插入:#define InitSize 10typedef struct{ int *data; int MaxSize; int length;} SeqList;//时间复杂度 O(n) bool ListInsert(SqList &L,int i,int e){ ...原创 2020-05-05 16:33:36 · 1099 阅读 · 0 评论 -
顺序表的实现--动态分配
学习数据结构中,顺便分享下学习中所敲的代码。#define InitSize 10typedef struct{ int *data; int MaxSize; int length;} SeqList;int main(){ SeqList L; InitList(L); //往顺序表随意插入几个元素。。。 IncreaseSize(L,5); return 0; }...原创 2020-05-05 15:38:02 · 452 阅读 · 0 评论