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
今天上英文課, 因為我想記住這兩個單字curly braces &
parenthesis你會看到一些代碼中curly braces & parenthesis是可以替換的?You may replace
parenthesis with curly braces if, and only if, ...
分类:
其他好文 时间:
2014-05-16 07:27:23
阅读次数:
257
题目: Evaluate the value of an arithmetic expression
inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an
integer or another e.....
分类:
其他好文 时间:
2014-05-16 05:56:07
阅读次数:
221
We are happy to announce the release of kbmMW v.
4.50.00 Beta Professional and Enterprise Edition with XE6 support.4.50.00 Beta 1
May 12 2014 New stuf...
分类:
其他好文 时间:
2014-05-16 03:34:32
阅读次数:
606
Because the 2014 may be the 23rd Anniversary
from theAir Jordan 6, In my opinion so many people are watching the following
New Jordan 6s Releases - Ca...
分类:
其他好文 时间:
2014-05-15 17:55:41
阅读次数:
366
【题目】
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
【题目】
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 longest palindromic substring.
【题意】
题意是找出字符串S中最长回文子串,S最长为1000,保证有唯一解
【思路】
原字符串用特殊字符#间隔,如下所示:
#a...
分类:
其他好文 时间:
2014-05-15 03:31:25
阅读次数:
299
描述把文本读出的API,在手机上测试知识支持英文,中文库应该没有所以不支持
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce...
分类:
移动开发 时间:
2014-05-14 21:34:49
阅读次数:
435
TriangleGiven a triangle, find the minimum path
sum from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given...
分类:
其他好文 时间:
2014-05-13 18:51:44
阅读次数:
297
1.常量<1>.constconstinta;intconsta;constint*a;int*consta;intconst*aconst;前两个的作用一样,a是一个常整型数;第三个意味着a是一个指向常整型数的指针(整型数是不可修改的,但指针可以);第四个a是一个指向整型数的常指针(指针指向的整型数十可以修改的,但指针是不..
分类:
其他好文 时间:
2014-05-13 12:51:45
阅读次数:
233