xjsc01
xjsc01
全部文章
# 数据结构课...
# ACM进阶训练(进阶)(3)
# CodeForce(3)
# NOJ题解(11)
# 堆栈队列单调栈(23)
# 数据结构的实现(4)
# 算法竞赛进阶指南(ACM培训)(30)
ACM(1)
c++(1)
题解(3)
归档
标签
去牛客网
登录
/
注册
xjsc01的博客
全部文章
/ # 数据结构课后思考题
(共5篇)
杨辉三角的打印---------数据结构典型例题
杨辉三角的打印---------数据结构典型例题 现在,给定一个数字N,需要打印N行的杨辉三角 注意: 杨辉三角实际上是 C n m 这 个 问 题 的 解 决 方 法 C^m_n \\ 这个问题的解决方法 Cnm这个问题的解决方法 我认为:如果单独给出一个 C n m C^m_n Cnm...
2022-10-06
0
0
数据结构————哈夫曼树的实现
效果图: 代码: #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int first;//表示pair对中的第一关键字 ...
2022-10-06
0
0
使用深度优先实现查找简单路径并实现输出
#include<stdio.h> #include <stdlib.h> #include <string.h>//我这里的头以及尾巴与书上的不一样。 typedef struct ArcNode { int from, to; struc...
2022-10-06
0
0
拓扑排序(toposort)
#include <stdio.h> #include <stdlib.h> #include <string.h>//我这里的头以及尾巴与书上的不一样。 typedef struct ArcNode { int from, to; struct ...
2022-10-06
0
0
AOV网的实现(数据结构)
#include <stdio.h> #include <stdlib.h> #include <string.h>//我这里的头以及尾巴与书上的不一样。 int max(int a, int b) { return a > b?a:b; } int...
2022-10-06
0
0