自定义博客皮肤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)
  • 收藏
  • 关注

原创 nginx + tomcat 简单配置

nginx和Tomcat的安装

2017-11-02 14:14:36 275

转载 C++string类常用函数

C++string类常用函数 转载自http://www.cppblog.com/lmlf001/archive/2006/04/19/5883.htmlstring类的构造函数:string(const char *s); //用c字符串s初始化string(int n,char c); //用n个字符c初始化此外,string类还支持默认构造函数和复制构造函数,如

2017-05-17 09:12:59 323

原创 leetcode上面难度hard题

N-Queens N皇后问题,输出全部解判断函数bool isvalid(int row,int col,int N,vector &record)//判断是否能够放置{ for(int i=0;i<N;i++) { if(record[i] == col || abs(i-row) == abs(record[i]-col))

2017-05-15 21:38:49 1141

原创 Jump Game II

Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Your goal is to reac

2017-05-11 19:59:09 216

原创 leetcode没做出来看答案的题

暴露出一个很严重的问题就是对stl的应用并不是非常得熟练 49. Group Anagrams Given an array of strings, group anagrams together.For example, given: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], Return:[ [“ate”, “eat”,”tea”],

2017-05-08 22:03:56 4776

原创 刷leetcode过程中记录难度题,自己做法及最优做法

leetcode 41. First Missing Positive Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your algorithm should run in

2017-05-05 19:23:07 422

原创 平衡二叉树的实现

转载自http://www.cppblog.com/cxiaojia/archive/2012/08/20/187776.html 但是由于原文的代码有错,评论区很多人表示代码有误,跑不通 我自己手打了一遍,并进行了完善,自己测试插入和删除都无误,查找很简单就没写。 第一步树的节点 这里相比于二叉排序树多了高度信息,来维护平衡性//平衡二叉查找树节点template<class T>cl

2017-04-19 09:18:36 310

空空如也

空空如也

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

TA关注的人

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