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

原创 leetcode - plus one

/*Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.*/#include #include

2014-12-21 22:46:13 288

原创 leetcode - remove duplicates

Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with

2014-12-20 18:55:28 348

原创 leetcode - remove element

leetcode array系列(1) -- remove element/* leetcode-remove element Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be

2014-12-14 23:23:14 297

原创 使用bit-field和union巧妙定义/存取具有特定结构的数据

在实际应用中,例如定义报文头,或定义设备的

2014-11-17 17:32:41 965

原创 leetcode - symmetric tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3But the f

2014-11-15 21:02:20 387

原创 leetcode - add binary

/** * C++ string, class, etc. */#include #include using namespace std;class Solution{public:    string addBinary(string a, string b)     {        int i = 0;        int maxL

2014-11-13 17:53:24 337

原创 如何在Windows下通过Cmake编译和使用PCRE

本文主要包括以下内容:1.    PCRE简介2.    使用CMAKE编译PCRE3.    在VC下编译和使用PCRE库PCRE(Perl Compatible Regular Expressions)The PCRE library is a set of functions that implement regular expression pattern

2014-11-10 21:27:02 3133 1

空空如也

空空如也

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

TA关注的人

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