Problem A
There are N cities in Chelsea's state (numbered starting from 1, which is Chelsea's city), and M bidirectional roads directly connect them. (A pair of cities may even be directly connected...
分类:
其他好文 时间:
2016-07-03 20:03:45
阅读次数:
317
1. j can reach word[i].length() since it can form an empty string; 2. to aviod duplication ( empty string can cause two found for a pair ,ex [abcd, db ...
分类:
其他好文 时间:
2016-07-01 16:22:21
阅读次数:
130
You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the w ...
分类:
其他好文 时间:
2016-06-29 22:14:30
阅读次数:
191
1.SharedPreferences: 通过SharedPreferences可以将NVP(Name/Value Pair,名称/值对)保存在Android的文件系统中, 还能够实现不同应用程序间的数据共享. 支持三种访问mode: 私有(MODE_PRIVATE):仅有创建程序有权限对其进行读取 ...
分类:
其他好文 时间:
2016-06-29 12:48:45
阅读次数:
212
https://leetcode.com/problems/russian-doll-envelopes/ You have a number of envelopes with widths and heights given as a pair of integers (w, h). One e ...
分类:
其他好文 时间:
2016-06-29 06:39:24
阅读次数:
182
Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: Si % Sj = 0 or ...
分类:
其他好文 时间:
2016-06-28 23:29:21
阅读次数:
202
带缓存组的Active standby pairs(ASP)在不带缓存组的ASP中,复制发生在TimesTen的表间;而在带缓存组的ASP中,复制发生在cache table之间。带缓冲组的复制仅支持只读和AWT缓存组。对于只读缓存组,复制的意义在于保持状态的连续,而对于AWT,复制可以保证数据不丢失。设置带只读缓存组的ASP(例)假设active master为cachedb1,standby m...
分类:
数据库 时间:
2016-06-28 12:56:16
阅读次数:
337
在Active Standby Pair中复制DDL语句在以下的例子中,active master为cachedb2, standby master为cachedb1在Active Standby Pair复制数据库对象DDLReplicationLevel 连接属性可以控制复制对象的行为。
DDLReplicationLevel = 1:不复制表,索引和同义词的create 和 drop,只复制...
分类:
数据库 时间:
2016-06-28 12:54:43
阅读次数:
315
题目链接:https://leetcode.com/problems/largest-divisible-subset/题目:
Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: S...
分类:
其他好文 时间:
2016-06-28 11:04:54
阅读次数:
124
题目描述: Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: Si % Sj = ...
分类:
其他好文 时间:
2016-06-28 02:01:55
阅读次数:
139