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-24 04:45:39
阅读次数:
245
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 ...
分类:
其他好文 时间:
2014-05-24 04:13:54
阅读次数:
284
安装libsvm的时候用到了mex -setup,有的会报 Could not find
the 64-bit compiler. This may indicate that the "X64 Compilers and Tools" or the
Microsoft Windo...
分类:
其他好文 时间:
2014-05-24 03:59:31
阅读次数:
387
一、 Oracle集群体系结构Oracle RAC,全称是Oracle Real
Application Cluster,即真正的应用集群,是oracle提供的一个并行集群系统,整个集群系统由Oracle Clusterware
(集群就绪软件)和 Real Application Clusters...
分类:
数据库 时间:
2014-05-23 11:33:51
阅读次数:
511
Gallery和swithcer联合使用
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian...
分类:
其他好文 时间:
2014-05-22 11:19:05
阅读次数:
288
【题目】
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array.
Here are few examples.
[1,3,5,6], 5 → 2
[1,3,5,6]...
分类:
其他好文 时间:
2014-05-22 09:41:59
阅读次数:
195
【题目】
Write a program to solve a Sudoku puzzle by filling the empty cells.
Empty cells are indicated by the character '.'.
You may assume that there will be only one unique solution.
A sudoku puzzle...
...and its solution numbers marked in red.
...
分类:
其他好文 时间:
2014-05-20 17:07:34
阅读次数:
335
[root@localhost ~]# date -R // 查看时区
Mon, 19 May 2014 10:18:46 +0000
[root@localhost ~]# tzselect // 设置修改时区
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean....
分类:
其他好文 时间:
2014-05-20 15:49:50
阅读次数:
319
Construct Binary Tree from Preorder and Inorder
TraversalGiven preorder and inorder traversal of a tree, construct the binary
tree.Note:You may assume...
分类:
其他好文 时间:
2014-05-19 18:43:40
阅读次数:
177
为了解释本节的目的,首先想象一下,我们有包含了三个node的cluster,这个cluster有一个名称是blogs的index,这个index有两个primary
shard。每个primary shard有两个replica。相对应的shard的数据备份不会在相同的node,因此,这个clust...
分类:
其他好文 时间:
2014-05-19 16:44:31
阅读次数:
287