Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t ...
分类:
其他好文 时间:
2016-07-06 17:59:20
阅读次数:
157
Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Example Given two strings, find the longest c ...
分类:
其他好文 时间:
2016-07-06 13:14:34
阅读次数:
115
Maximum Subarray Given an array of integers, find a contiguous subarray which has the largest sum. Notice The subarray should contain at least one num ...
分类:
其他好文 时间:
2016-07-06 11:54:26
阅读次数:
242
前言:浏览器兼容性 响应式的解决方案! 好好研究下吧! 一:全局CSS样式 1.<html lang="zh-CN"> 2.原生的感觉:<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale= ...
分类:
其他好文 时间:
2016-07-05 10:20:51
阅读次数:
182
1. Do not forget to left shift the number. ...
分类:
其他好文 时间:
2016-07-05 07:38:40
阅读次数:
166
1. When divide k into two parts, it could be 0 for the any part. So i <= nums1.length. ...
分类:
其他好文 时间:
2016-07-05 06:27:29
阅读次数:
182
http://www.practice.geeksforgeeks.org/problem-page.php?pid=129 Maximum Index Given an array A of integers, find the maximum of j - i subjected to the ...
分类:
其他好文 时间:
2016-07-05 06:20:57
阅读次数:
153
【引子】RMQ (Range Minimum/Maximum Query)问题: 对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<=n),返回数列A中下标在i,j里的最小(大)值,也就是说,RMQ问题是指求区间最值的问题。 {方法} 1、朴素(即搜索),O(n)-O(qn) onli ...
分类:
编程语言 时间:
2016-07-04 13:25:46
阅读次数:
200