![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
一个只想躺平的咸鱼
这个作者很懒,什么都没留下…
展开
-
2021 - 10 - 14多项式求值
#include<bits/stdc++.h> #define rep(i, a, b) for(int i = a; i <= b ; i ++ ) #define per(i, a, b) for(int i = a; i >= b ; i -- ) const int maxn = 1e4 + 10; typedef struct myStack { int data[maxn]; int top; }mystack; typedef struct charStack原创 2021-10-14 16:08:31 · 51 阅读 · 0 评论 -
2021-10 - 09 栈
#include<iostream> #define rep(i, a, b) for(int i = a; i <= b; ++ i) #define per(i, a, b) for(int i = a; i >= b; -- i) using namespace std; const int maxn = 5; typedef struct Stack{ int data[maxn]; int top; }stack; void initStack(stack * s原创 2021-10-09 15:34:47 · 61 阅读 · 0 评论 -
2021-09-29 多项式加乘
乘法我偷懒了,直接用了map,如果需要排序,在map里嵌套一个vector就可以,但是我也很懒的没有写 #include<bits/stdc++.h> #define rep(i, a, b) for(int i = a; i <= b; i ++ ) #define per(i, a, b) for(int i = a; i >= b; i -- ) using namespace std; typedef struct Node{ int xs, zs; Node * ne原创 2021-09-29 22:24:39 · 88 阅读 · 2 评论 -
2021-09-27 双向循环链表
#include<bits/stdc++.h> #define rep(i, a, b) for(int i = a; i <= b; i ++) #define per(i, a, b) for(int i = a; i >= b; i --) using namespace std; typedef struct DLNode{ int data; DLNode * next, * prior; } * DBLNode; int n; void InitDLNode(D原创 2021-09-29 17:36:40 · 95 阅读 · 1 评论