
******数据结构*******
文章平均质量分 77
猿的进化之路
这个作者很懒,什么都没留下…
展开
-
hdu5977 树分治
hdu5977 Garden of EdenTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 614 Accepted Submission(s): 188Problem Description When God made原创 2017-06-12 12:29:09 · 1229 阅读 · 0 评论 -
poj1741 树分治
题目链接 Tree Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 22430 Accepted: 7403 DescriptionGive a tree with n vertices,each edge has a length(positive integer less than 1001).原创 2017-06-11 12:01:08 · 421 阅读 · 0 评论 -
hdu5818 模拟栈
Joint StacksTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 673 Accepted Submission(s): 321Problem DescriptionA stack is原创 2016-08-11 08:45:48 · 362 阅读 · 0 评论 -
链表一大堆
#include #include #include using namespace std;struct node{ int date; node *next;};node *ni(node *head)///逆序{ node *pre,*temp,*l,*now; l=head->next; pre=(node*)malloc(sizeo原创 2016-04-16 17:09:09 · 911 阅读 · 0 评论 -
链表非降序列插入元素
#include #include #include using namespace std;struct node{ int date; node *next;};node *insert_(int k,node *head){ node * temp=(node *)malloc(sizeof(node)); temp->date=k;原创 2016-04-16 16:11:52 · 313 阅读 · 0 评论 -
链表删除偶数
#include #include #include using namespace std;struct node{ int date; node *next;};node* delou(node * head){ node *pre,*l; pre=head; l=head->next; while(l!=NULL) {原创 2016-04-09 17:03:33 · 3709 阅读 · 1 评论 -
链表逆序
#include #include #include using namespace std;struct node{ int date; node *next;};void shou(node *head){ node *l; l=head->next; while(l!=NULL) {原创 2016-04-09 17:02:50 · 307 阅读 · 0 评论 -
单向链表排序
#include #include #include using namespace std;struct ac{ int date; struct ac *next;};void sort1(struct ac *head,int T)//其实 就是冒泡{ ac *tmp,*p,*q; ac *a,*b; p=head;//把链首给p原创 2016-03-30 20:43:15 · 628 阅读 · 0 评论 -
数据结构单链表删除相同元素(int)
#include #include #include using namespace std;struct node{ int date; node *next;};int main(){ node *head,*L,*p; int n; cin>>n; int x; for(int i=1;i<=n;i++) {原创 2016-03-30 20:30:52 · 829 阅读 · 0 评论 -
八大排序
版权声明:本文为博主原创文章,未经博主允许不得转载。目录(?)[-]概述1插入排序直接插入排序Straight Insertion Sort 2 插入排序希尔排序Shells Sort3 选择排序简单选择排序Simple Selection Sort4 选择排序堆排序Heap Sort5 交换排序冒泡排序Bubble Sort6 交换排序快速排序Quick Sort7转载 2016-03-15 20:48:00 · 311 阅读 · 0 评论