Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a...
分类:
其他好文 时间:
2014-10-06 22:05:10
阅读次数:
287
Given 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 numb...
分类:
其他好文 时间:
2014-10-06 13:41:10
阅读次数:
154
给定数n,问有多少种不同的BST(二叉搜索树)...
分类:
其他好文 时间:
2014-10-06 01:31:09
阅读次数:
341
mysql 数据库优化包括a.表的设计合理化(符合3NF)b.添加适当索引(index[4种:普通索引 主键索引 唯一索引unique 全文索引])c.分表技术(水平分割,垂直分割)d.读写[写:update/delete/add]分离e.存储过程[模块化编程 可以提高速度]数据库的三层结构 ora...
分类:
数据库 时间:
2014-10-05 23:26:39
阅读次数:
329
Given 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.
Note:
Elements ...
分类:
其他好文 时间:
2014-10-05 19:14:28
阅读次数:
173
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2014-10-05 16:48:38
阅读次数:
193
题目:Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Ele...
分类:
其他好文 时间:
2014-10-03 01:34:13
阅读次数:
480
[leetcode]Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring....
分类:
其他好文 时间:
2014-10-02 13:30:42
阅读次数:
217
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
面DP题的考官都是神经病。。(吐...
分类:
其他好文 时间:
2014-10-01 13:15:31
阅读次数:
242
本文介绍的STL算法中的remove删除算法,源码中介绍了函数remove、remove_copy、remove_if、remove_copy_if、unique、unique_copy。并对这些函数的源码进行详细的剖析,并适当给出使用例子。...
分类:
其他好文 时间:
2014-09-30 22:59:30
阅读次数:
351