Problem Description:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transa...
分类:
其他好文 时间:
2014-06-05 09:33:52
阅读次数:
342
###########################################################################
## MySQL CLuster 配置文件
## 带有[!]的注释表示该参数有详细说明,建议参考官方描述.
## 带有[!!]的注释表示设置该参数时应该详细阅读官方描述.
## SCI 连接方式的配置请详细阅读官方描述.
...
分类:
数据库 时间:
2014-06-05 05:15:57
阅读次数:
362
duplicate报ORA-01017权限问题
环境:
OS:RedHat EnterPrise Linux 5.8 x64
Cluster:Oracle Grid 11.2.0.4
Database:Oracle Database EnterPrise 11.2.0.4
Archive:RAC+DG
今天在配置DG的过程中,前期环境都已经准备好了,就差最后一步...
分类:
其他好文 时间:
2014-06-04 23:37:04
阅读次数:
341
MySQL Cluster Core Concepts
NDBCLUSTER (also known as
NDB) is an in-memory storage engine offering high-availability and data-persistence features.
NDBCLUSTER(也叫做NDB)是一种提供了高可用性和数据持久性特征的内存式存储引擎。...
分类:
数据库 时间:
2014-06-03 05:51:53
阅读次数:
469
1、
??
Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in...
分类:
其他好文 时间:
2014-06-03 03:13:59
阅读次数:
195
【题目】
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be use...
分类:
其他好文 时间:
2014-06-03 01:07:58
阅读次数:
329
In DOS you may have been used to D: to change
to the D drive. Cygwin provides a mapping of DOS/Windows drives to the unix file
system by mapping or mo...
【题目】
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
Below is one possible representation of s1 = "great":
great
/ gr eat
/ \ / g r e at
/ ...
分类:
其他好文 时间:
2014-06-01 09:41:05
阅读次数:
196
【题目】
Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B. The number of elements initialized in A and B are...
分类:
其他好文 时间:
2014-06-01 09:21:16
阅读次数:
292
Given 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 the fol...
分类:
其他好文 时间:
2014-05-30 14:59:37
阅读次数:
241