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
Workspaces 命令tf workspaces [/owner:ownername]
[/computer:computername][/server:servername]
[/format:(brief|detailed)][/updateUserName:oldUserName] [/u...
分类:
其他好文 时间:
2014-05-16 07:11:17
阅读次数:
283
--创建表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
问题起因:某一天下午,团队成员在向svn服务端提交新内容,突然整栋楼断电了,自然,提交的过程被中断了。当时,还没有什么想法。
等有电后,另外一同事在update项目时,发现无法正常使用svn,一直报异常信息:Invalid filesystem revision numbersvn:
没...
分类:
其他好文 时间:
2014-05-15 15:49:33
阅读次数:
329
Flex4中支持的格式化功能有很多,其都是mx.formatters.Formatter的子类。常见的主要有CurrencyFormatter/DataFormatter/NumberFormatter等。子类必须重写format()方法来实现自定义格式化方案。
验证功能的提供类都是mx.validators.Validator的子类。其中如果将Validator中required属性为TRUE...
分类:
其他好文 时间:
2014-05-15 11:25:43
阅读次数:
229
【题目】
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: "PAHNAPLSI...
分类:
其他好文 时间:
2014-05-15 04:30:57
阅读次数:
313
SQL:CREATE PROCEDURE PagingViewTest(
@currentPageIndex INT, --页序号 @pageSize INT, --页大小 @pageCount INT OUTPUT
--返回值,总记录数)ASBEGIN--取总记录数SELECT @p...
分类:
数据库 时间:
2014-05-14 13:15:07
阅读次数:
473