The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie...
分类:
其他好文 时间:
2014-06-29 06:03:23
阅读次数:
260
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all uniquetriplets in the array which gives the sum of z...
分类:
其他好文 时间:
2014-06-29 00:21:06
阅读次数:
237
实现效果:CREATE VIEW [dbo].[v_Show_StockInOrderItem]ASWITH cte_detail AS( --已入库数量SELECT s.ProductID,s.ColorsID,s.SizesID,s.Title,s.ColorsName,s.SizesName,...
分类:
其他好文 时间:
2014-06-29 00:09:47
阅读次数:
264
leetcode中有好些题目是这一类型,即找出满足一定条件的字符串子串。有些只要返回一个结果,有些则要返回所有结果。这类题目大体有两个思路,一个是dfs,另一个则是直接遍历,记录遍历过程中的一些状态。此题采用后者,理解起来简单。 题目并没有说L中的字符串是否可以重复,因此认为是可能重复的。所以...
分类:
其他好文 时间:
2014-06-18 10:36:29
阅读次数:
192
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-06-18 09:33:28
阅读次数:
181
win7:删除1、C:\Users\All Users\FLEXnet\adobe_00080000_tsf.dataWinXP:(c:/DocumentsandSettings/AllUsers/ApplicationData/FLEXnet\adobe_00080000_tsf.data)2、C...
分类:
其他好文 时间:
2014-06-18 08:37:51
阅读次数:
194
代理是一种特殊的,指向某个方法模块所在的地址。一般来讲,那个方法模块,可以是一个普通的方法,更多的时候,是一团匿名的lamda表达式,即一个匿名方法。现在简单理解一下代理的简写方式,即Action关键字。
class A
{
B b = new B();
public delegate string Show(string result);
...
分类:
其他好文 时间:
2014-06-18 06:54:36
阅读次数:
253
JS+CSS3实现计算器特效
C
7
8
9
+
4
5
6
-
1
2
3
÷
0
.
=
x
// Get all the keys from document
var keys = document.querySelectorAll('#calculator...
分类:
Web程序 时间:
2014-06-18 06:37:23
阅读次数:
271
Given a set of distinct integers,
S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For example,
...
分类:
其他好文 时间:
2014-06-18 00:39:26
阅读次数:
301
题目链接 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 changed. It doesn...
分类:
其他好文 时间:
2014-06-17 23:45:10
阅读次数:
373