习惯了用户URL传递参数的方便和快捷,然而大多数人并没有了解通过GET方式请求页面并传递一个过长的参数的话,IE浏览器会自动的截取超出最大长度的字符的!微软的权威解释,IE的url最大长度是2083个字节,可以用于GET传递数据的长度是2048个字节。Maximum URL length is 2,...
分类:
其他好文 时间:
2014-08-27 14:35:57
阅读次数:
218
思想: 后序遍历。注意路径的连通: 结点不为空时要返回 max( max(leftV, rightV)+rootV, rootV);
分类:
其他好文 时间:
2014-08-27 14:21:47
阅读次数:
148
第一个:禁止用户手动调整缩放。width-viewport的宽度height-viewport的高度initial-scale-初始的缩放比例minimum-scale-允许用户缩放到的最小比例maximum-scale-允许用户缩放到的最大比例user-scalable-用户是否可以手动缩放第二个...
分类:
移动开发 时间:
2014-08-27 10:35:47
阅读次数:
226
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?1,2,1...
分类:
其他好文 时间:
2014-08-26 22:44:46
阅读次数:
212
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 longes...
分类:
其他好文 时间:
2014-08-26 19:09:06
阅读次数:
153
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if yo...
分类:
其他好文 时间:
2014-08-26 17:33:46
阅读次数:
200
Some Classical Recursive FunctionsSome Classical Recursive FunctionsTable of Contents1. Find the maximum element of an array recursively.2. Recursivel...
分类:
其他好文 时间:
2014-08-26 11:14:05
阅读次数:
170
天天有个好心情 1 import java.util.Scanner; 2 3 public class P1079 4 { 5 public static void main(String args[]) 6 { 7 int a[] = new int[10000...
分类:
其他好文 时间:
2014-08-26 02:52:35
阅读次数:
203
LeetCode: Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree. For example:G...
分类:
其他好文 时间:
2014-08-25 22:34:54
阅读次数:
184
1.背景 最大似然估计是概率论中常常涉及到的一种统计方法。大体的思想是,在知道概率密度f的前提下,我们进行一次采样,就可以根据f来计算这个采样实现的可能性。当然最大似然可以有很多变化,这里实现一种简单的,实际项目需要的时候可以再更改。 博主是参照wiki来学习的,地址请点击我 这里实现的是特别简单的例子如下(摘自wiki的最大似然)离散分布,离散...
分类:
编程语言 时间:
2014-08-25 11:53:54
阅读次数:
1655