手机版
热门标签
站点地图
我要投稿
广告合作
联系我们
搜 索
广告位招租
广告位招租
切换导航
首页
编程教程
编程导航
编程百科
编程问答
编程博文
编程实例
硬件设备
网络运营
软件教程
移动数码
办公软件
操作系统
人工智能
栏目导航
▸ 编程语言
▸ 前端开发
▸ 移动开发
▸ 开发工具
▸ 程序设计
▸ 行业应用
▸ CMS系统
▸ 服务器
▸ 数据库
公众号推荐
微信公众号搜
"智元新知"
关注
微信扫一扫可直接关注哦!
子栏目导航
Linux
Windows
CentOS
Ubuntu
Nginx
WebService
Scala
Memcache
Apache
Redis
Docker
Bash
Azure
Tomcat
LNMP
Shell
Ansible
KVM虚拟机
数据结构
鸿蒙系统
宝塔面板
服务器运维
网络安全
编程之家
数据结构
【数据结构】第2周 栈与队列 1:用队列对扑克牌排序
/********************** 其实就是个桶排序 **********************/ 1:用队列对扑克牌排序 查看 提交 统计 提问 总时间限制: 1000ms 内存限制: 65536kB 描述 假设这里有36张扑克牌,分别为A1~A9,B1~B9,C1~C9,D1~D9,其中A代表方片,B代表草花,C代表红桃,D代表黑桃,那么,设定如下的排序规则: 1.对于两张
作者:编程之家 时间:2019-06-11
【数据结构】第2周 栈与队列 2:栈的基本操作
/********************************************* 基本的栈操作,注意栈空时pop输出error的情况也要把接下来的读完 **********************************************/ 2:栈的基本操作 查看 提交 统计 提问 总时间限制: 1000ms 内存限制: 1000kB 描述 栈是一种重要的数据结构,它具有p
作者:编程之家 时间:2019-06-11
【数据结构】第2周 栈与队列 3:stack or queue
/*****************************8 数据比较弱,直接过了 ************************************? 3:stack or queue 总时间限制: 1000ms 内存限制: 65535kB 描述 栈和队列都是常用的线性结构,它们都提供两个操作: Push:加入一个元素。 Pop:弹出一个元素。 不同的是,栈是”先进后出”,而队列则
作者:编程之家 时间:2019-06-11
【数据结构】第2周 栈与队列 4:中缀表达式的值
4:中缀表达式的值 查看 提交 统计 提问 总时间限制: 200ms 内存限制: 1024kB 描述 人们熟悉的四则运算表达式称为中缀表达式,例如(23+34*45/(5+6+7))。在程序设计语言中,可以利用堆栈的方法把中缀表达式转换成保值的后缀表达式(又称逆波兰表示法),并最终变为计算机可以直接执行的指令,得到表达式的值。 给定一个中缀表达式,编写程序,利用堆栈的方法,计算表达式的值。
作者:编程之家 时间:2019-06-11
【数据结构】【c】关于malloc和realloc
c中malloc realloc calloc 的区别和联系 2008-06-24 19:24:21 标签: c realloc calloc 休闲 ANSI C说明了三个用于存储空间动态分配的函数 (1) malloc 分配指定字节数的存储区。此存储区中的初始值不确定 (2) calloc 为指定长度的对象,分配能容纳其指定个数的存储空间。该空间中的每一位(bit)都初始化为0
作者:编程之家 时间:2019-06-11
【数据结构】第3周 字符串 1:统计字符数
1:统计字符数 查看 提交 统计 提问 总时间限制: 1000ms 内存限制: 65536kB 描述 判断一个由a-z这26个字符组成的字符串中哪个字符出现的次数最多 输入 第1行是测试数据的组数n,每组测试数据占1行,是一个由a-z这26个字符组成的字符串 每组测试数据之间有一个空行,每行数据不超过1000个字符且非空 输出 n行,每行输出对应一个输入。一行输出包括出现次数最多的字符和该字
作者:编程之家 时间:2019-06-11
【数据结构】第3周 字符串 2:Caesar 密码
2:Caesar 密码 查看 提交 统计 提问 总时间限制: 1000ms 内存限制: 65536kB 描述 Julius Caesar 生活在充满危险和阴谋的年代。为了生存,他首次发明了密码,用于军队的消息传递。假设你是Caesar 军团中的一名军官,需要把Caesar 发送的消息破译出来、并提供给你的将军。消息加密的办法是:对消息原文中的每个字母,分别用该字母之后的第5个字母替换(例如:
作者:编程之家 时间:2019-06-11
【数据结构】第3周 字符串 3:古代密码
/***************************************** 分别统计明码串和密码串各字符个数,排序后比较,都相同输出YES *****************************************/ 3:古代密码 总时间限制: 1000ms 内存限制: 65536kB 描述 古罗马帝王有一个包括各种部门的强大政府组织。其中有一个部门就是保密服务部门。为了保
作者:编程之家 时间:2019-06-11
【数据结构】线性表顺序存储_List
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 20 /* 存储空间初始分配量 */
作者:编程之家 时间:2019-06-11
【数据结构】线性表链式存储_LinkList
#include "stdio.h" #include "string.h" #include "ctype.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define
作者:编程之家 时间:2019-06-11
【数据结构】静态链表_StaticLinkList
#include "string.h" #include "ctype.h" #include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define
作者:编程之家 时间:2019-06-11
【数据结构】顺序栈_Stack
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 20 /* 存储空间初始分配量 */ t
作者:编程之家 时间:2019-06-11
【数据结构】两栈共享空间_DoubleStack
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 20 /* 存储空间初始分配量 */ t
作者:编程之家 时间:2019-06-11
【数据结构】链栈_LinkStack
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 20 /* 存储空间初始分配量 */ t
作者:编程之家 时间:2019-06-11
【数据结构】斐波那契函数_Fibonacci
#include "stdio.h" int Fbi(int i) /* 斐波那契的递归函数 */ { if( i < 2 ) return i == 0 ? 0 : 1; return Fbi(i - 1) + Fbi(i - 2); /* 这里Fbi就是函数自己,等于在调用自己 */ } int main() { int i; int a[40]; pr
作者:编程之家 时间:2019-06-11
【数据结构】顺序队列_Queue
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 20 /* 存储空间初始分配量 */ t
作者:编程之家 时间:2019-06-11
【数据结构】链队列_LinkQueue
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 20 /* 存储空间初始分配量 */ t
作者:编程之家 时间:2019-06-11
【数据结构】串_String
#include "string.h" #include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE
作者:编程之家 时间:2019-06-11
【数据结构】模式匹配_KMP
#include "string.h" #include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 1
作者:编程之家 时间:2019-06-11
【数据结构】二叉树顺序结构实现_BiTreeArray
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 100 /* 存储空间初始分配量 */
作者:编程之家 时间:2019-06-11
【数据结构】二叉树链式结构实现_BiTreeLink
#include "string.h" #include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE
作者:编程之家 时间:2019-06-11
【数据结构】线索二叉树_ThreadBinaryTree
#include "string.h" #include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE
作者:编程之家 时间:2019-06-11
【数据结构】邻接矩阵创建_CreateMGraph
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXVEX 100 /* 最大顶点数,应由用户定义 */
作者:编程之家 时间:2019-06-11
【数据结构】邻接表创建_CreateALGraph
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXVEX 100 /* 最大顶点数,应由用户定义 */
作者:编程之家 时间:2019-06-11
【数据结构】邻接矩阵深度和广度遍历DFS_BFS
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 typedef int Status; /* Status是函数的类型,
作者:编程之家 时间:2019-06-22
【数据结构】邻接表深度和广度遍历DFS_BFS
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 9 /* 存储空间初始分配量 */ #d
作者:编程之家 时间:2019-06-22
【数据结构】最小生成树_Prim
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXEDGE 20 #define MAXVEX 20
作者:编程之家 时间:2019-06-22
【数据结构】最小生成树_Kruskal
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 typedef int Status; /* Status是函数的类型,
作者:编程之家 时间:2019-06-22
【数据结构】最短路径_Dijkstra
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXEDGE 20 #define MAXVEX 20
作者:编程之家 时间:2019-06-22
【数据结构】拓扑排序_TopologicalSort
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXEDGE 20 #define MAXVEX 14
作者:编程之家 时间:2019-06-22
上一页
14
15
16
17
18
19
20
21
下一页
小编推荐
热门标签
更多
python
JavaScript
java
HTML
reactjs
C#
Android
CSS
Node.js
sql
r
python-3.x
MysqL
jQuery
c++
pandas
Flutter
angular
IOS
django
linux
swift
typescript
路由器
JSON
路由器设置
无线路由器
h3c
华三
华三路由器设置
华三路由器
电脑软件教程
arrays
docker
软件图文教程
C
vue.js
laravel
spring-boot
react-native