可能是因为我是按难度顺序刷的原因,这个其实在之前的几道题里面已经写过了。题目如下: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path...
分类:
其他好文 时间:
2014-11-15 21:31:17
阅读次数:
194
本文对于最大似然估计的算法进行了一个简要的讨论总结。...
分类:
其他好文 时间:
2014-11-15 18:59:07
阅读次数:
205
Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide...
分类:
其他好文 时间:
2014-11-15 11:13:11
阅读次数:
171
http://poj.org/problem?id=3693
Maximum repetition substring
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7241
Accepted: 2162
Description
The repe...
分类:
编程语言 时间:
2014-11-14 00:19:28
阅读次数:
338
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,
1
/ 2 3
Return 6....
分类:
其他好文 时间:
2014-11-12 13:47:59
阅读次数:
139
1.viewport定义的解析1. (1)强制让文档与设备的宽度保持1:1;(2)文档最大的宽度比列是1.0(initial-scale初始刻度值和maximum-scale最大刻度值);(3)user-scalable定义是否可缩放(0为不缩放),使页面固定设备上面的大小。2.flexbox页面布...
分类:
移动开发 时间:
2014-11-12 10:28:23
阅读次数:
194
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],the...
分类:
其他好文 时间:
2014-11-11 20:50:41
阅读次数:
188
【题目】
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],
the contiguous subarray [2,3] has th...
分类:
其他好文 时间:
2014-11-11 19:18:19
阅读次数:
217
Maximum Product SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given...
分类:
其他好文 时间:
2014-11-11 18:25:20
阅读次数:
181
1.(原文)问题描述Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,...
分类:
其他好文 时间:
2014-11-11 15:51:54
阅读次数:
145