- 博客(12)
- 资源 (23)
- 收藏
- 关注
原创 Combination Sum II
Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may on
2012-08-23 02:55:49 2437
原创 Combination Sum
Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be c
2012-08-23 01:45:34 8833 3
原创 Permutations
PermutationsGiven a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,
2012-08-23 00:36:52 820
原创 Climbing Stairs
Climbing StairsYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?/** 整理的
2012-08-14 20:50:19 648
原创 Anagrams
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.什么是anagrams?/** 整理的提交代码 * 处理复杂度为O(n),n是字符串个数,但是其中有排序等步骤没有固
2012-08-14 19:24:10 911
原创 Add Two Numbers
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers
2012-08-14 15:33:33 718
原创 Add Binary
Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100"./** 整理的提交代码 * 处理复杂度为O(max(n1,n2)) * 主要思路: * 1、先处理特殊情况,有其中一个为空,则
2012-08-13 23:33:01 2181
原创 4Sum
4SumGiven an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.No
2012-08-13 19:14:22 1688
原创 3Sum Closest
3Sum ClosestGiven an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each in
2012-08-13 14:07:06 3345
原创 3Sum
3SumGiven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in
2012-08-12 17:16:56 6570
原创 《C++标准程序库》第六章摘录与笔记
《C++标准程序库》第六章摘录与笔记6.1 容器的共通能力和共通操作6.1.1 容器的共通能力1、所有容器提供的都是“value语意”而非“reference语意”。容器进行的元素的安插操作时,内部实施的是拷贝操作,置于容器内。一次STL容器的每一个元素都必须能够被拷贝。如果你打算存放的对象不具有public copy构造函数,或者你要的不是副本(如你要的是被多个容器共同容纳的元素
2012-08-04 12:16:45 813
原创 赋值操作符重载函数形参规格
赋值操作符重载函数形参规格赋值操作符重载函数的形参基本都写为常量引用,返回值为引用。class A{ public: A(int data = 0) : m_data(data) {} ~A() {} A& operator=(const A& other) { if (this == &other) { return *this; } m_data
2012-08-01 15:08:43 1028
Mini-XML库(包含编译工程和文档)及其在VC++6.0下的使用示例
2015-06-06
SQLite权威指南
2012-01-01
奇异值分解(SVD)C语言源代码
2011-05-04
《C&C++深层探索》 姚新颜
2010-10-16
《精通Visual C++图像处理编程(第3版)》随书光盘
2010-04-30
VC++ 深入详解
2010-04-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人