- 博客(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
312
原创 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
386
原创 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
346
原创 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
418
原创 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
361
原创 如何在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
3279
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人