Word BreakGiven a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary w...
分类:
其他好文 时间:
2014-09-11 16:54:22
阅读次数:
170
oracle数据库:为了使ID自增,建了序列后,创建触发器:create or replace TRIGGER TRIG_INSERT_TRADE_RECODE BEFORE INSERT ON TRADE_RECODE FOR EACH ROW BEGIN :NEW.ID:=SEQ_TRADE_R...
分类:
其他好文 时间:
2014-09-11 16:51:32
阅读次数:
373
链接:http://poj.org/problem?id=1699
题意:给出n个字符串,求他们相连的最小长度,如果首尾字母相同则可以共用相同部分,比如两个串ABCDEF和DEFGHI,他们相连为ABCDEFGHI,最小长度为9,中间的DEF部分共用了。
思路:由于数据量较小,首先对每两个字符串a,b用扩展KMP求出a连在b之后可以共用的长度,用数组B[i][j]表示第j个字符串连接在...
分类:
其他好文 时间:
2014-09-11 02:19:21
阅读次数:
210
Sequence
Time Limit: 6000MS
Memory Limit: 65536K
Total Submissions: 7447
Accepted: 2451
Description
Given m sequences, each contains n non-negative integer. Now we ma...
分类:
其他好文 时间:
2014-09-10 21:08:11
阅读次数:
200
android_server_BluetoothService.cpp在该文件修改如下函数的如下参数
bool btmtk_gap_discovery(native_data_t *nat, btbm_discovery_type mode)
{
...
req_p->inquiry_number = 25; // the number can be modify less t...
分类:
移动开发 时间:
2014-09-10 10:55:07
阅读次数:
300
Word Break
Total Accepted: 22281 Total
Submissions: 105657My Submissions
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence o...
分类:
其他好文 时间:
2014-09-09 21:39:29
阅读次数:
335
Longest Consecutive Sequence
Total Accepted: 19169 Total
Submissions: 68303My Submissions
Given an unsorted array of integers, find the length of the longest consecutive elements sequence...
分类:
其他好文 时间:
2014-09-07 21:12:55
阅读次数:
294
See LCS again时间限制:1000 ms | 内存限制:65535 KB难度:3描述There are A, B two sequences, the number of elements in the sequence is n、m;Each element in the seque.....
分类:
其他好文 时间:
2014-09-07 21:01:55
阅读次数:
286
Count and Say
Total Accepted: 14508 Total
Submissions: 53213My Submissions
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is...
分类:
其他好文 时间:
2014-09-07 19:49:55
阅读次数:
199
PAT 1085 Perfect Sequence 题目:Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if ...
分类:
其他好文 时间:
2014-09-07 11:01:24
阅读次数:
245