public enum SequenceEnum { SEQUENCE; SequenceEnum() { } private static final ConcurrentLinkedQueue cache = new ConcurrentLinkedQueue(); private static... ...
分类:
其他好文 时间:
2019-06-22 10:54:46
阅读次数:
109
转自:http://www.codes51.com/article/detail_146662.html impdp时报错ORA-39083&ORA-01917ORA-39083: 对象类型 OBJECT_GRANT 创建失败, 出现错误:ORA-01917: 用户或角色 'HQ_88' 不存在失败 ...
分类:
其他好文 时间:
2019-06-19 17:01:35
阅读次数:
840
Oracle中一般将自增sequence重置为初始1时,都是删除再重建,这种方式有很多弊端,依赖它的函数和存储过程将失效,需要重新编译。不过还有种巧妙的方式,不用删除,利用步长参数,先查出sequence的nextval,记住,把递增改为负的这个值(反过来走),然后再改回来。 假设需要修改的序列名: ...
分类:
数据库 时间:
2019-06-18 13:57:27
阅读次数:
135
题目链接:http://dsalgo.openjudge.cn/binarytree/12/ 给定m个数字序列,每个序列包含n个非负整数。我们从每一个序列中选取一个数字组成一个新的序列,显然一共可以构造出n^m个新序列。接下来我们对每一个新的序列中的数字进行求和,一共会得到n^m个和,请找出最小的n ...
分类:
其他好文 时间:
2019-06-17 17:10:44
阅读次数:
121
Problem 42 https://projecteuler.net/problem=42 The nth term of the sequence of triangle numbers is given by, tn = ½n(n+1); so the first ten triangle n ...
分类:
其他好文 时间:
2019-06-16 13:36:00
阅读次数:
92
开发项目中有用到,顺便复习了一下,在python中的随机数。 ...
分类:
编程语言 时间:
2019-06-15 15:25:00
阅读次数:
83
题目链接: "戳我" 蒟蒻的第一道子序列自动机! 给定两个01串A,B,求一个最短的01串,要求C不是A,B的子序列。要求如果同样短,输出字典序最小的。 那么我们先构建A,B两个串的子序列自动机。然后我们设$f[i][j]$表示现在已经匹配到A的第i位,B的第j位,现在还需要f[i][j]长度,才不 ...
题目如下: Return the lexicographically smallest subsequence of text that contains all the distinct characters of text exactly once. Example 1: Example 2: ...
分类:
其他好文 时间:
2019-06-15 10:09:22
阅读次数:
108
EE205 Project 2Assign 2019-05-20 Due 2019-06-18 Longest Palindromic Subsequence Given a sequence, find the length of the longest palindromic subsequen ...
分类:
其他好文 时间:
2019-06-12 19:59:18
阅读次数:
357
Common Subsequence Problem Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a se ...
分类:
其他好文 时间:
2019-06-10 15:56:04
阅读次数:
124