自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 二叉树的镜像

#include #include #include #include #include using namespace std; string s; struct node { char data; struct node * left; struct node * right; }; node * creatBTree() { if(s.siz

2015-06-30 15:01:54 365

原创 剑指offer之重建二叉树

/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Soluti

2015-06-26 09:41:40 433

原创 剑指offer之空格替换

#include #include #include #include #include using namespace std; class Solution { public: string replaceSpace(string str) { string ans; for(int i = 0, j = 0; i < str.si

2015-06-24 21:05:14 434

原创 桶排序

#include #include #include int n; struct bucket { int b[11]; int count;//每桶元素的个数 }*pbucket; int cmp(const void *a, const void *b) { return *(int *)a - *(int *)b; } void bucketsort(int a[]) {

2015-06-01 11:43:20 399

空空如也

空空如也

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

TA关注的人

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