openallzzz
openallzzz
全部文章
PTA
AcWing(1)
c++(10)
cpu(1)
csdn周赛(3)
Java(7)
javaee(4)
javascript(1)
LeetCode题解(4)
mybatis(1)
mybatis-plus(1)
SpringBoot(5)
Typora(1)
VMware(1)
数据库(5)
数据结构(2)
洛谷题解(1)
牛客小白月赛(1)
笔记(7)
算法(7)
蓝桥杯(12)
题解(1)
归档
标签
去牛客网
登录
/
注册
自在独行
日拱一卒 功不唐捐
全部文章
/ PTA
(共4篇)
PTA - 6-1 带头结点的链队列的基本操作 (10 分)
Status QueueInsert(LinkQueue *Q,ElemType e){ LNode* insertNode = (LNode*)malloc(sizeof(LNode)); if(insertNode == NULL) return ERROR; ...
2023-06-23
0
0
PTA - 6-2 循环队列入队出队 (70 分)
// squeue是循环队列的地址 void EnQueue_seq(SeqQueue squeue, DataType x){ if((squeue->r + 1) % squeue->Max == squeue->f){ printf(&...
2023-06-23
0
0
PTA - 6-3 十进制转二进制(顺序栈设计和应用) (10 分)
// #define MaxSize 100 /* 栈最大容量 */ // int top; /* 栈顶指针 */ // int mystack[MaxSize]; /* 顺序栈 */ /*判栈是否为空,空返回true,非空返回false */ bool isEmpty(){ if...
2023-06-23
0
0
PTA - 6-1 输出二叉树的所有叶子 (15 分)
void leaf(Bptr p){ if(!p){ return; } leaf(p->Lson); if(!(p->Lson) && !(p->Rson)){ printf(...
2023-06-23
0
0