自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

早睡早起好少年

为什么坚持 想一想当初

  • 博客(7)
  • 资源 (5)
  • 收藏
  • 关注

原创 堆,优先队列

用最大堆实现排序 #include // Myself 15-9-26 #include using namespace std; void Adjust_Heap(int* a,int i,int n) { // 调整最大堆 if (i > n/2) return ; // 叶子节点 无需调整 int le = i<<1; int ri = i<<1|1; i

2015-09-26 19:54:26 282

原创 kinds of sort

各种排序算法 #include #include #include using namespace std; void change(int *a,int *b) /// change { int t=*a; *a=*b; *b=t; } void print(int *a,int n) /// print { for(int i=0;i<n;i++)

2015-09-23 22:41:35 375

原创 leetcode-107-Binary Tree Level Order Traversal II

Binary Tree Level Order Traversal II Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For e

2015-09-23 18:36:06 369

原创 leetcode-102-Binary Tree Level Order Traversal

Binary Tree Level Order Traversal Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree {3,9,20,#,

2015-09-22 20:16:08 316

原创 leetcode-101-Symmetric Tree

Symmetric Tree For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 But the following is not: 1 / \ 2 2 \ \ 3 3 Note: B

2015-09-21 21:13:19 305

原创 leetcode-283-Move Zeroes

Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, given nums = [0, 1, 0, 3, 1

2015-09-21 13:20:51 325

原创 leetcode-110-Balanced Binary Tree

Balanced Binary Tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subt

2015-09-21 12:57:37 319

[溜客资源论坛提供]C++黑客编程揭秘与防范

黑客资料,了解Hacker,覆盖知识广,有兴趣可以看一下

2014-11-13

微软面试100题

经典的微软面试100题,详细讲解,对算法的学习大有帮组,对即将面试的同学更是不用说。

2014-08-27

c/c++语言参考

包含c++各种库函数,以及c的函数,c++中STL里的各种函数用法,很经典,即可作为入门基础,又可以当做工具书。

2014-08-27

UNIX环境高级编程(第二版)

UNIX操作系统,讲的很详细,适合新手, 绝对不坑

2014-08-20

《算法导论》

《算法导论》是一部很经典的书,里面包含了许多算法知识,深入浅出,图论,搜索,数据结构,应有尽有。对搞ACM的帮组极大。

2014-08-15

空空如也

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

TA关注的人

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