Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.思路:对于某一点来说,在经过该点的直线中选取节点数量最多的直线;对于全局来说,必定是某个局部点满足条件的直...
分类:
其他好文 时间:
2015-10-30 20:35:54
阅读次数:
289
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,...
分类:
编程语言 时间:
2015-10-30 12:23:19
阅读次数:
165
问题链接:https://leetcode.com/problems/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 ...
分类:
其他好文 时间:
2015-10-30 02:21:57
阅读次数:
199
Given a binary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some starting node to any node in the...
分类:
其他好文 时间:
2015-10-28 21:05:06
阅读次数:
186
sybase在进行group by查询的时候报错:execute error:The current query would generate a key size of 700 for a work table. This exceeds the maximum allowable limit o...
分类:
数据库 时间:
2015-10-28 17:04:52
阅读次数:
221
https://leetcode.com/problems/sliding-window-maximum/Given an arraynums, there is a sliding window of sizekwhich is moving from the very left of the a...
QuestionGiven an array of n integer with duplicate number, and a moving window(size k), move the window at each iteration from the start of the array,...
package cn.edu.xidian.sselab;/*** Given a binary tree, find its maximum depth.* The maximum depth is the number of nodes along the longest path from t...
分类:
其他好文 时间:
2015-10-24 23:32:01
阅读次数:
262
import subprocessimport multiprocessingimport urllibimport sysimport osimport pymongoimport signalimport timeclient=pymongo.MongoClient("192.168.139.1...
分类:
其他好文 时间:
2015-10-23 18:34:04
阅读次数:
263
本文研究的总结,欢迎转载,但请注明出处:http://blog.csdn.net/pistolove/article/details/41964475Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The...
分类:
其他好文 时间:
2015-10-23 15:57:20
阅读次数:
172