Givennpoints on a 2D plane, find the maximum
number of points that lie on the same straight line./** * Definition for a
point. * struct Point { * ...
分类:
其他好文 时间:
2014-06-07 00:31:01
阅读次数:
233
原题地址:https://oj.leetcode.com/problems/triangle/题意:Given
a triangle, find the minimum path sum from top to bottom. Each step you may move
to adjacent n...
分类:
编程语言 时间:
2014-06-06 17:31:34
阅读次数:
397
Problem DescriptionGiven a circle sequence
A[1],A[2],A[3]......A[n]. Circle sequence means the left neighbour of A[1] is
A[n] , and the right neighbou...
分类:
其他好文 时间:
2014-06-06 14:52:21
阅读次数:
247
Given a binary tree containing digits
from0-9only, each root-to-leaf path could represent a number.An example is the
root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2014-06-06 12:38:42
阅读次数:
255
API: SafeArrayCreate SafeArrayDestroy
SafeArrayGetElement SafeArrayPutElement SafeArrayGetLBound SafeArrayGetUBound1
STDMETHODIMP CMath::Sum(VAR...
分类:
其他好文 时间:
2014-06-06 10:09:56
阅读次数:
150
for(var i =0;i<100;i++) {
}alert(i);//100if(true){ var i="91d"; } alert(i);//91d function add(ad1,ad2){
sum=ad1+ad2; return sum;//如果没有用...
分类:
Web程序 时间:
2014-06-06 09:25:07
阅读次数:
256
【题目大意】给你一个sum和一个limit,现在要你在1~limit中找到一些数来使得这些数的和等于sum,如果能找到的话就输出找到的数的个数和这些数,未找到输出"-1"。比赛的时候被hack了。【题目分析】这题需要将所有的数的lowbit先求出来,然后按照大小排序,然后从后往前判断,如果这个数小于...
分类:
其他好文 时间:
2014-06-05 20:36:44
阅读次数:
307
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...
分类:
其他好文 时间:
2014-06-05 14:10:38
阅读次数:
304
(from zhangwuji) $$\bex
\sum\limits_{n=0}^{\infty}\dfrac{n^3+2n+1}{(n^4+n^2+1)n!},\quad
\sum\limits_{n=0}^{\infty}\dfrac{1}{(n^4+n^2+1)n!}. \eex$$解答: ...
分类:
其他好文 时间:
2014-06-03 15:31:55
阅读次数:
252