自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 问答 (1)
  • 收藏
  • 关注

原创 heap

#include<bits/stdc++.h>using namespace std;template<typename T> class Heap{ private: T a[100]; int index; public: void heapipy(); void push(T e); T top(

2016-08-29 22:51:34 470

原创 hdu3068 Manacher --> find the longest palindrome

#include<bits/stdc++.h>using namespace std;char ss[250020];char s[250020];int p[250000];int main(){ while(scanf("%s",s)!=EOF){ memset(p,0,sizeof(p)); int i,j; int len =

2016-08-12 22:12:07 250

原创 compiler cue

.obj文件,可重新定位指令代码

2016-08-12 00:44:16 290

原创 AVL

reference: 数据结构 邓俊辉 第三版#include<iostream>using std::swap;using std::cout;using std::cin;using std::endl;using std::max;#define pnode node*#define isRoot(x) (!((x).parent))#define isLChild(x) (!

2016-08-11 16:25:23 346

原创 Binary Search Tree (BST)

BST is a effective data structure for inserting,removing,searching. All of them cost log(n) #include<bits/stdc++.h>using namespace std;typedef struct node{ int value; node* lc; node* rc;}

2016-08-05 18:05:16 231

原创 adjacency_matrix & adjacency_list

/* * 3--------4--------5 * | | | * | | | * | | | * 1--------2--------6 * \ / *

2016-08-03 20:48:23 882

原创 Hash Table

A simple hash table code, to be continuedimport randomHT = [None for x in range(15)]res = random.randrange(100)key = 13l = len(HT)## count(elements)<key<l#def insert(n): ans = n%key

2016-08-01 15:46:59 267

原创 Linked List->single linked list

#include<bits/stdc++.h>using namespace std;typedef struct List{ int value; List* next;}*Link;Link head = NULL;Link tail = NULL;void InsertHead(int value){ Link tmp = new List; tmp->

2016-08-01 01:00:20 326

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除