码迷,mamicode.com
首页 >  
搜索关键字:two points    ( 13225个结果
[LeetCode]Max Points on a Line
题目:Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.算法分析:定义最大直线为符合相同条件的直线中通过点最多的那条直线。对每个点p,计算其它的点与p形成的...
分类:其他好文   时间:2014-05-16 23:26:31    阅读次数:389
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-05-16 23:18:16    阅读次数:360
Leetcode 树 Same Tree
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie Same Tree  Total Accepted: 15922 Total Submissions: 38418 Given two binary trees, write a function to check if they are equal o...
分类:其他好文   时间:2014-05-14 01:15:40    阅读次数:293
Create PropertyManager Page Example (VB.NET)
1 SolidWorks API Help 2 Create PropertyManager Page Example (VB.NET) 3 This example shows how to create a PropertyManager page that contains two s...
分类:Web程序   时间:2014-05-13 20:59:57    阅读次数:463
/cdrom /media /mnt
/media : Mount point for removeable mediaPurposeThis directory contains subdirectories which are used as mount points for removeable media such as flo...
分类:其他好文   时间:2014-05-13 16:37:16    阅读次数:362
Codeforces #245(div2)
A:A. Points and Segments (easy) 题目看了n久,开始觉得尼玛这是div2的题目么,题目还标明了easy。。 意思是给你一n个点,m个区间,在n个点上放蓝球或者红球,然后让你找一种选择方案使得m个区间内的蓝球和红球数量之差不超过1. 开始想过用dfs,不过这只是div2的A题而已。。 然后想了下,直接输出010101序列不就可以么。 交了一发,发现...
分类:其他好文   时间:2014-05-13 15:42:51    阅读次数:296
ZOJ3672:Gao The Sequence
You are given a sequence of integers, A1,A2,...,An. And you are allowed a manipulation on the sequence to transform the origin sequence into another sequence B1,B2,...,Bn(Maybe the two sequences are s...
分类:其他好文   时间:2014-05-13 13:45:10    阅读次数:327
[ACM] 1016 Prime Ring Problem (深度优先搜索)
Prime Ring Problem Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent...
分类:其他好文   时间:2014-05-13 11:54:17    阅读次数:444
POJ 3090 Visible Lattice Points 法雷级数
题目来源:POJ 3090 Visible Lattice Points 题意:哪些点可以看到 思路: F1: 0/1 1/1 F2: 0/1 1/2 1/1 F3: 0/1 1/3 1/2 2/3 1/1 F4: 0/1 1/4 1/3 1/2 2/3 3/4 1/1 F5: 0/1 1/5 1/4 1/3 2/5 1/2 3/5 2/3 3/4 4/5 1/1 F6:...
分类:其他好文   时间:2014-05-13 08:35:54    阅读次数:324
0301-APP-Dialog
显示7种Dialog下面是图,然后一次对应的代码实现 实现代码 new AlertDialog.Builder(AlertDialogSamples.this) .setIcon(R.drawable.alert_dialog_icon) .setTitle(R.string.alert_dialog_two_button...
分类:移动开发   时间:2014-05-13 05:47:34    阅读次数:446
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!