Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-08-19 23:57:55
阅读次数:
475
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the". 1 public class Solution { 2 ....
分类:
编程语言 时间:
2014-08-19 23:43:45
阅读次数:
209
HTTP Patch方法是除了post,get,put,delete之外的一个新方式,网上查不到的,也算是独家吧:主要用下面这个方法:QNetworkReply *sendCustomRequest(const QNetworkRequest &request, const QByteArray &...
分类:
数据库 时间:
2014-08-19 22:14:55
阅读次数:
787
Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->5...
分类:
其他好文 时间:
2014-08-19 22:08:15
阅读次数:
238
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255...
分类:
其他好文 时间:
2014-08-19 20:40:45
阅读次数:
203
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Cl...
分类:
其他好文 时间:
2014-08-19 20:38:25
阅读次数:
239
1 #include 2 3 void print(int *a, int start , int end); 4 5 void quick_sort(int *a, int start, int end) { 6 if (start + 1 >= end) return; 7 ...
分类:
其他好文 时间:
2014-08-19 20:37:15
阅读次数:
238
这一节中我们演示下solr中创建多核的还有一种方法。 接第10讲,首先关闭tomcatserver 1.解压solr-4.8.0后,找到solr-4.8.0以下的example目录下的multicore目录 2. 把multicore目录下的全部文件复制到D:\Server\Solr目录以下 3.....
分类:
其他好文 时间:
2014-08-19 18:22:45
阅读次数:
165
Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?...
分类:
其他好文 时间:
2014-08-19 18:12:55
阅读次数:
279
写代码时需要注意下面两点:
1、源码用 utf-8 字符集
2、源码中需要翻译的字符串必须用英文(不能有中文或其它语言),则需要用 tr()。
例如:
QMessageBox::information(this,
tr("Information"),
tr("Hello world."));...
分类:
其他好文 时间:
2014-08-19 16:43:25
阅读次数:
183