<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-sca ...
分类:
移动开发 时间:
2016-04-30 23:47:07
阅读次数:
867
Given a sequence of integers S = {S1, S2, ..., Sn}, you should determine what is the value of the maximum positive product involving consecutive terms ...
分类:
其他好文 时间:
2016-04-30 18:13:57
阅读次数:
167
1.meta固定语句<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">width 属性控制设备的宽度,device-width 可以确保它能正 ...
分类:
移动开发 时间:
2016-04-29 13:54:44
阅读次数:
180
Given an integer array with no duplicates. A max tree building on this array is defined as follow: The root is the maximum number in the array The lef ...
分类:
其他好文 时间:
2016-04-29 09:21:46
阅读次数:
127
概述 RMQ(Range Minimum/Maximum Query),即区间最值查询,是指这样一个问题:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<=n),返回数列A中下标在i,j之间的最小/大值。这两个问题是在实际应用中经常遇到的问题,下面介绍一下解决这两种问题的比较高效的算 ...
分类:
编程语言 时间:
2016-04-26 14:05:38
阅读次数:
223
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 l ...
分类:
其他好文 时间:
2016-04-25 20:55:00
阅读次数:
129
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 roo ...
分类:
其他好文 时间:
2016-04-25 00:37:34
阅读次数:
142
正在看《算法设计与分析》的动规3.4 ,因此找了这道题来写。 ...
分类:
其他好文 时间:
2016-04-24 23:01:35
阅读次数:
253
Longest Palindromic Substring 最长回文子串 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 100 ...
分类:
其他好文 时间:
2016-04-22 18:25:01
阅读次数:
147