Given a stringS, find the longest palindromic
substring inS. You may assume that the maximum length ofSis 1000, and there
exists one unique longest pa...
分类:
其他好文 时间:
2014-05-18 19:39:55
阅读次数:
355
脚本名:power.sh脚本内容:Shell代码 #!/bin/sh username3=$1
dir_name2=$2 # get existing directory file_path=$dir_name2 while true do if [ -d
$fil...
分类:
系统相关 时间:
2014-05-18 18:49:24
阅读次数:
319
Given two numbers represented as strings,
return multiplication of the numbers as a string.Note: The numbers can be
arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-05-18 01:25:07
阅读次数:
288
【题目】
原文:
1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one...
分类:
其他好文 时间:
2014-05-16 01:50:08
阅读次数:
311
使用typedef语句定义数组类型1. 一维数组类型的定义格式typedef
[];例如:(1) typedef int vector[10];(2) typedef char strings[80];(3) typedef short
int array[N];第一条语句定义了一个元素类型为int...
分类:
其他好文 时间:
2014-05-15 22:13:17
阅读次数:
244
Given two binary strings, return their sum
(also a binary string).For example, a = "11" b = "1" Return "100".string
的操作,短string补位。两个“0”会输出一个“00”,要特殊处理...
分类:
其他好文 时间:
2014-05-15 17:47:57
阅读次数:
283
//将字符串转化为type型.privateobjectparse(strings,Typet){//如果字符串是一个string,直接返回.if(t.IsAssignableFrom(typeof(string)))returns;//如果字符串是一个数组,那么将其解析为数组并返回.if(t.Is...
分类:
其他好文 时间:
2014-05-15 13:40:45
阅读次数:
210
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings....
分类:
其他好文 时间:
2014-05-15 13:27:07
阅读次数:
233
原文:免费的精品: Productivity Power Tools 动画演示
Productivity Power Tools 是微软官方推出的 Visual Studio 扩展,被用以提高开发人员生产率。它的出现一定程度上弥补和完善了
Visual Studio 自身的不足,比如其中的标记自动补...
分类:
其他好文 时间:
2014-05-15 10:05:50
阅读次数:
379
Given two numbers represented as strings,
return multiplication of the numbers as a string.Note: The numbers can be
arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-05-14 23:11:14
阅读次数:
398