https://leetcode.com/problems/minimum-size-subarray-sum/Given an array ofnpositive integers and a positive integers, find the minimal length of a suba...
分类:
其他好文 时间:
2015-06-20 18:26:47
阅读次数:
130
Given an array ofnpositive integers and a positive integers, find the minimal length of a subarray of which the sum ≥s. If there isn't one, return 0 i...
分类:
其他好文 时间:
2015-06-18 18:47:04
阅读次数:
98
一个长度13的尺子,如果在1位置刻点可以量出1和12,13三种刻度.那么至少刻几个点,可以直接量出1-13所有的长度,分别刻在哪几个位置?注:必须是直接量。即在尺子上能找出一个1-13任意的整数长度。写了个没什么技术含量的dfs暴力求解。一个可行解是 1, 2, 6, 10。 1 #include ...
分类:
其他好文 时间:
2015-06-18 00:35:31
阅读次数:
128
Given a sorted (increasing order) array, write an algorithm to create a binary tree with minimal height.1.Divide the array equally into left part and ...
分类:
其他好文 时间:
2015-06-15 23:35:50
阅读次数:
123
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return...
分类:
编程语言 时间:
2015-06-09 19:42:12
阅读次数:
127
一:Minimum Size Subarray Sum
题目:
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return
0 instead.
...
分类:
其他好文 时间:
2015-06-06 16:37:38
阅读次数:
354
什么是 clean code ?大神对优雅代码的定义: I like my code to be elegant and efficient. The
logic should be straightforward to make it hard
for bugs to hide, the dependencies minimal to
ease maintenance, error han...
分类:
其他好文 时间:
2015-06-06 09:12:49
阅读次数:
112
描述了在CentOS-6.4-minimal系统中安装和管理MongoDB-3.0.2的步骤...
分类:
数据库 时间:
2015-06-03 21:40:43
阅读次数:
175
CentOS-6.4-minimal版中安装JDK_Maven_Subversion以及修改rpm包安装路径...
分类:
其他好文 时间:
2015-06-03 21:35:29
阅读次数:
135
题目描述:Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn’t one, return 0 instead.For example, given the array [2,3,1...
分类:
其他好文 时间:
2015-06-02 21:56:21
阅读次数:
115