题目: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
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 longes...
分类:
其他好文 时间:
2014-05-16 21:15:37
阅读次数:
454
变量:javascript变量可以用来保存两种类型的值:基本类型和引用类型。基本类型包括:Undefined,Null,Boolean,Number(用于所有的数值包括整数和浮点型)
和String。这两者的特点是:1.基本类型值在内存中占用固定大小的空间,一次被保存到栈的内存中;2.从一个变量向里...
分类:
编程语言 时间:
2014-05-16 20:53:04
阅读次数:
307
#include#include#includeusing namespace std;const
double PRECISION = 1E-6;const int COUNT = 4;const int RESULT = 24;double
number[COUNT]; //这里一定要用...
分类:
编程语言 时间:
2014-05-16 07:12:29
阅读次数:
350
--创建表create table employee( userId number not
null, userName varchar2(50), pwd varchar2(50), email varchar2(100), clazz
number);--向表中插入数据INSERT INTO e...
分类:
其他好文 时间:
2014-05-16 06:53:08
阅读次数:
331
题目: Givennpoints on a 2D plane, find the maximum
number of points that lie on the same straight line.解题思路:
第一反应:枚举两个点组成的直线,然后看其他的点在不在这条直线上,在此过程中统计最大.....
分类:
其他好文 时间:
2014-05-16 05:54:57
阅读次数:
193
有时候对TFS的操作需要使用命令行,因为无图形界面进行操作.我们可以进入Visual Studio
Tools使用Developer Command Prompt进行操作.使用命令witadmin /?可以查看到所有参数The following is the
list of commands th...
分类:
其他好文 时间:
2014-05-14 07:28:03
阅读次数:
515
CiscoCUCMallowsyoutoconfiguresinglenumberreach(alsoknownasmobility)sothatacalldestinedforyourdeskphone‘sextensioncanringonanumberofotherdevicessuchasyourcellphone,blackberry,homephone,etc.Thisfeaturealsoallowsyoutoseamlesslytransferanactivecallfromyourcellp..
分类:
其他好文 时间:
2014-05-13 12:56:54
阅读次数:
618
<!doctypehtml>
<html>
<metacharset="utf-8"/>
<head>
<title>益司CMS-PC与手机建站集成</title>
<metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<linkrel="stylesh..
分类:
其他好文 时间:
2014-05-13 11:58:21
阅读次数:
335
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