- 博客(8)
- 收藏
- 关注
原创 C语言实现数据结构队列的链式存储
#include <stdio.h>#include <stdlib.h>typedef int ElemType;typedef struct LinkNode{ ElemType data; struct LinkNode* next;}LinkNode; //链表结点的结构类型 typedef struct { LinkNode* front;//链表头; LinkNode* rear;//链表尾; }LinkQueue;//先进先出 vo.
2022-01-14 14:45:19
168
原创 C语言实现数据结构队列
#include<stdio.h>#include<stdlib.h>#define MaxSize 5typedef int ElemType;typedef struct { ElemType data[MaxSize];//数组,存储 MaxSize -1个元素 int front,rear;//队列头,队列尾 }SqQueue;//初始化队列 void InitQueue(SqQueue& Q) { Q.front= Q.rear =.
2022-01-13 10:15:11
242
1
原创 python爬虫爬取牛客网面试经验
import requestsfrom lxml import etreeimport refrom bs4 import BeautifulSoupimport randomimport timeimport osimport threadingfrom retry import retryclass niuke(object): def __init__(self): self.url='https://www.nowcoder.com/discus.
2022-01-12 15:19:31
1017
原创 C语言实现数据结构栈
链式存储实现栈顺序表数组实现栈#include <stdio.h> #include <stdlib.h>#define MaxSize 50 typedef int ElemType;typedef struct{ ElemType data[MaxSize];//数组 int top;}SqStack;void InitStack(SqStack &S) { S.top = -1;//代表栈为空 }bool StackE..
2022-01-12 15:04:53
336
2
原创 单链表oj题目
#include<stdio.h>#include<stdlib.h>typedef struct LNode{ int data; struct LNode*next;}LNode,*LinkList;LinkList CreatList1(LinkList&L){ LNode*s; int x; L = (LinkList)malloc(sizeof(LinkList)); L->next=NULL;.
2022-01-12 11:49:29
110
原创 C语言实现数据结构双链表增删改查
#include<stdio.h>#include<stdlib.h>typedef int Elemtype;typedef struct DNode//双链表结点类型 12个字节 { Elemtype data;//数据域 struct DNode *prior;//前驱指针 struct DNode *next;//后继指针 } DLNode,*DLinkList; //头插法建立双链表 DLinkList DList_head_.
2022-01-12 09:29:13
429
2
原创 C语言实现数据结构单链表增删改查
#include<stdio.h>#include<stdlib.h>typedef int ElemType;typedef struct LNode{ ElemType data; struct LNode *next; //指向下一节点 }LNode,*LinkList; //LinkList表示结构体指针类型,链表的类型 //头插法新建链表LinkList CreatList1(LinkList &L) //list_In.
2022-01-12 09:25:20
560
1
原创 C语言实现数据结构顺序表
#include <stdio.h>#include <stdlib.h>#define MaxSize 50typedef int ElemType; //顺序表中元素类型 //静态分配 typedef struct{ ElemType data[MaxSize]; //定义的数组,用来存元素 int length; //当前顺序表中有多少元素 }SqList;////#define InitSize.
2022-01-12 09:18:06
301
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人