Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I ...
分类:
其他好文 时间:
2019-02-24 10:25:23
阅读次数:
185
```C++ include int main(){ int n, flag = 1, first_flag = 1, positive_flag = 0; int sum = 0, summax = 0; int st = 0, end = 0, st_max = 0, end_max = 0, ...
分类:
其他好文 时间:
2019-02-24 00:54:19
阅读次数:
163
題目 : Given an integer array nums, find the contiguous subarray(containing at least one number) which has the largest sum and return its sum. Example:I ...
分类:
编程语言 时间:
2019-02-23 01:11:32
阅读次数:
263
一、一些结论 1.最大流最小割定理(Maximum Flow, Minimum Cut Theorem):网络的最大流等于最小割 2.任意一个流都小于等于任意一个割(废话) ...
分类:
其他好文 时间:
2019-02-19 20:03:52
阅读次数:
167
题目: 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 lo ...
分类:
其他好文 时间:
2019-02-18 18:58:53
阅读次数:
145
题目: 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 lo ...
分类:
其他好文 时间:
2019-02-18 18:52:07
阅读次数:
132
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: ...
分类:
其他好文 时间:
2019-02-18 18:42:41
阅读次数:
152
题意:给出n个点 要求取k个点 这k个点中 距离最小的两个点要求距离最大 拿到手看不出是最大团 也看不出是二分答案(第一次用) 因为答案必然存在 一定有一个最值 所以用二分答案来做 最大距离为根号二乘10000 所以R=20000 且R-L>1e-4; ...
分类:
其他好文 时间:
2019-02-16 15:40:22
阅读次数:
173
1、错误描述 java.lang.IllegalStateException: The maximum number of cell styles was exceeded. You can define up to 4000 styles in a .xls workbook at org.apa ...
分类:
编程语言 时间:
2019-02-16 15:15:03
阅读次数:
124
//jquery实现 // $(function(){ // $(window).on("resize",function(){ // var width=$(window).width(); // var fontSize=width/640*100; // if(width>=640){ // ... ...
分类:
其他好文 时间:
2019-02-16 09:14:57
阅读次数:
191