摘要:
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.找一个二维图上在一条直线上点的最大数,不知道有啥更好的方法。需要注意重复点的情况 1 class Solu... 阅读全文
posted @ 2014-10-22 16:09
Madao_
阅读(152)
评论(0)
推荐(0)
摘要:
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express... 阅读全文
posted @ 2014-10-22 14:35
Madao_
阅读(120)
评论(0)
推荐(0)
摘要:
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.C... 阅读全文
posted @ 2014-10-22 12:50
Madao_
阅读(130)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2014-10-22 11:21
Madao_
阅读(145)
评论(0)
推荐(0)

浙公网安备 33010602011771号