码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
PHP使用mongo是遇到的错误
string(66) “exception: aggregation result exceeds maximum document size (16MB)”我用aggregation 从mongo中取数据,当超过16M 时候,就报错了。我已经好多次超多了16M。愁。...
分类:Web程序   时间:2015-05-26 12:43:12    阅读次数:160
No.149 Max Point on a Line
No.149 Max Point on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.法一:考虑不周,一条直线上的点会重复计数,但没找到解决...
分类:其他好文   时间:2015-05-25 23:56:17    阅读次数:150
JS 异常: Uncaught RangeError: Maximum call stack size exceeded
遇到了这个js异常, 总是吧浏览器搞崩溃,这是什么原因呢?开始我也只能想到死循环, 也许是哪个条件判断写错了,其实不是。经过google,发现了一篇文章,内容请看:=================================================================文章地...
分类:Web程序   时间:2015-05-25 21:59:56    阅读次数:309
[LeetCode] Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.经过同一个点且斜率相等的直线一定是同一条直线,所以我们只要分别计算每一个点与其它点的直线的斜率,统计斜率的...
分类:其他好文   时间:2015-05-25 16:01:04    阅读次数:126
leetcode 5 -- Longest Palindromic Substring
Longest Palindromic Substring 题目: 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 palindrom...
分类:其他好文   时间:2015-05-24 14:19:55    阅读次数:146
hdu 1839 Delay Constrained Maximum Capacity Path
最短路+二分。对容量进行二分,因为容量和时间是单调关系的,容量越多,能用的边越少,时间会不变或者增加。因为直接暴力一个一个容量去算会TLE,所以采用二分。#include#include#include#include#include#includeusing namespace std;const...
分类:其他好文   时间:2015-05-23 16:40:59    阅读次数:107
codeforce Round304 div.2 D
题意: Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then the second one tries to make maximum possible number of ro...
分类:其他好文   时间:2015-05-23 14:18:31    阅读次数:174
[Lintcode] Best Time to Buy and Sell Stock IV
问题描述Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most k transactions.Example Given price...
分类:其他好文   时间:2015-05-23 11:30:26    阅读次数:124
Java for LeetCode 104 Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:编程语言   时间:2015-05-23 10:03:37    阅读次数:114
53 Maximum Subarray
public class Solution { public int maxSubArray(int[] nums) { if (nums == null || nums.length <= 0) { return 0; } in...
分类:其他好文   时间:2015-05-22 11:08:40    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!