![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 80
白白不狼
我是菜b
展开
-
单链表的创建及显示
Description为足球队员建立记录,要有姓名、身高、年龄、所属俱乐部。请创建一个单链表存储并输出。注意:两种实现方式,头插法创建及尾插法创建。单链表结构体结点如下:struct FootballPlayer{ char name[20]; int height; int age; char club[20]; FootballPlayer *ne原创 2017-04-17 20:24:41 · 3027 阅读 · 0 评论 -
#470 C. Producing Snow
C. Producing Snowtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice likes snow a lot! Unfortunately, this year's winter is already over,...原创 2018-03-26 20:45:37 · 146 阅读 · 0 评论 -
poj2503 hash map实现
DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.原创 2018-01-30 19:04:45 · 161 阅读 · 0 评论 -
poj 2002 hash
SquaresTime Limit: 3500MS Memory Limit: 65536KTotal Submissions: 20811 Accepted: 7999DescriptionA square is a 4-sided polygon whose sides have equal length and原创 2018-01-05 14:41:19 · 179 阅读 · 0 评论 -
hdu 5510 KMP+暴力
BazingaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 6175 Accepted Submission(s): 1905Problem DescriptionLadies and gentlemen, please sit u...原创 2017-12-11 20:45:06 · 201 阅读 · 0 评论 -
stl map使用详解
Map是STL的一个关联容器,它提供一对一(其中第一个可以称为关键字,每个关键字只能在map中出现一次,第二个可能称为该关键字的值)的数据处理能力,由于这个特性,它完成有可能在我们处理一对一数据的时候,在编程上提供快速通道。这里说下map内部数据的组织,map内部自建一颗红黑树(一种非严格意义上的平衡二叉树),这颗树具有对数据自动排序的功能,所以在map内部所有的数据都是有序的,后边我们会见识到有...转载 2017-12-11 18:17:50 · 292 阅读 · 0 评论 -
c++ list链表的简单使用
题目描述:用链表实现以下功能0 显示链表中的内容1 后跟两个数字 i j 表示在第i个位置插入J2 后跟一个数组 k 表示删除第k个位置内的内容#include#include#includeusing namespace std;int main(){ int a; listlistint ; list::iterator pos; //好像定义了一原创 2017-10-29 17:12:01 · 1511 阅读 · 0 评论 -
POJ 2255 二叉树遍历 已知前序遍历 中序遍历 求后序遍历
DescriptionLittle Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes.This is an example of原创 2017-08-23 17:11:41 · 426 阅读 · 0 评论 -
二叉树的建立与遍历详解 菜鸟都能看懂的教程
树形结构要多利用递归来求解,递归的关键就是想清楚所有的基准情形,然后扩展到一般情况,写代码的时候最好把基准情况放在前面,把一般情况放在后面!定义二叉树结构体:typedef struct BinaryTreeNode{ TelemType data; struct BinaryTreeNode *Left; struct BinaryTreeNode *Right;}N...转载 2017-08-10 13:40:49 · 44779 阅读 · 16 评论 -
edu round42 D. Merge Equals
D. Merge Equalstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of positive integers. While there are at least two equal ele...原创 2018-04-11 22:15:21 · 248 阅读 · 0 评论