题目:Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.给出一系列点,求出点的个数最多的那条直线。两点确定一条直线,N个点就有N(N-1)/2条直线,相同直...
分类:
其他好文 时间:
2015-12-12 18:33:47
阅读次数:
121
自己看着大牛的论文学了一下后缀数组,看了好久好久,想了好久好久才懂了一点点皮毛TAT 然后就去刷传说中的后缀数组神题,poj3693是进化版的,需要那个相同情况下字典序最小,搞这个搞了超久的说。 先简单说一下后缀数组。首先有几个重要的数组: ·SA数组(后缀数组):保存所有...
分类:
编程语言 时间:
2015-12-12 11:02:32
阅读次数:
209
Maximum execution time of 30 seconds exceeded,今天把这个错误的解决方案总结一下:简单总结一下解决办法:报错一:内存超限,具体报错语句忘了,简单说一下解决办法。利用循环分批导入;每个循环内部开始处使用sleep(5);语句,做延迟执行,防止服务器内存同一时...
分类:
其他好文 时间:
2015-12-11 22:11:25
阅读次数:
168
https://leetcode.com/problems/maximum-depth-of-binary-tree/Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along ...
分类:
其他好文 时间:
2015-12-10 23:47:24
阅读次数:
159
width - viewport的宽度 height - viewport的高度initial-scale - 初始的缩放比例minimum-scale - 允许用户缩放到的最小比例maximum-scale - 允许用户缩放到的最大比例user-scalable - 用户是否可以手动缩放Cordo...
分类:
移动开发 时间:
2015-12-10 19:02:45
阅读次数:
212
1007. Maximum Subsequence Sum (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a sequence of K integers { N1, N2, ..., NK}. A conti...
分类:
其他好文 时间:
2015-12-09 19:32:59
阅读次数:
264
题目: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 lon...
分类:
其他好文 时间:
2015-12-09 17:18:01
阅读次数:
115
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-12-09 17:06:30
阅读次数:
108
题目出处:https://leetcode.com/submissions/detail/47640173/题意描述:由于过于简洁,故不再翻译,具体描述见一下英文描述:Givennpoints on a 2D plane, find the maximum number of points that...
分类:
其他好文 时间:
2015-12-08 00:30:22
阅读次数:
146
# Definition for a binary tree node.# class TreeNode(object):# def __init__(self, x):# self.val = x# self.left = None# sel...
分类:
编程语言 时间:
2015-12-06 17:33:21
阅读次数:
155