Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou...
分类:
其他好文 时间:
2015-03-02 20:40:28
阅读次数:
178
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the cor...
分类:
其他好文 时间:
2015-03-02 19:10:38
阅读次数:
135
1、导出名字为A的表(这里会导出SEQUENCES及FUNCTION等内容)expdp TEST/TEST@orcl schemas=TEST dumpfile=TEST.dmp DIRECTORY=db_bak EXCLUDE=TABLE:\"NOT IN\(\'A\')\"2、导出名字不为A的表...
分类:
数据库 时间:
2015-03-02 19:03:12
阅读次数:
238
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the cor...
分类:
其他好文 时间:
2015-03-02 13:16:06
阅读次数:
112
题目链接:点击打开链接
题意:
给定n个数,
构造一个序列(只能选给出的n个数,但数字可重复用)
使得序列严格递增且相邻的两个数字不互质
思路:
因为是严格递增,所以给输入的n个数排个序,相当于选n个数中的子序列了。
把每个数都分解质因数,然后用质因数转移方程即可。
import java.io.BufferedReader;
import java.io.InputStreamR...
分类:
其他好文 时间:
2015-03-01 23:49:41
阅读次数:
332
项目中,用到一个序列作单号,框架用的是ssh,在dao层去拿的时候,运行时报错为dual is not mapped,[select *.nextval nextvalue from dual]后来检查发现,获取方式不对,于是改成下面这样,就可以正常获取了 //获取seq的最后一个值 p...
分类:
数据库 时间:
2015-02-27 21:23:47
阅读次数:
226
https://oj.leetcode.com/problems/repeated-dna-sequences/publicList<String>findRepeatedDnaSequences(Strings){
//Assumptions...
List<String>toReturn=newArrayList<>();
Set<String>seen=newHashSet<>();
for(inti=0;i<=s.length(..
分类:
其他好文 时间:
2015-02-26 00:04:28
阅读次数:
117
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou...
分类:
其他好文 时间:
2015-02-25 18:21:38
阅读次数:
143
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou...
分类:
其他好文 时间:
2015-02-22 17:16:11
阅读次数:
154
D. Looking for OwlsEmperor Palpatine loves owls very much. The emperor has some blueprints with the new Death Star, the blueprints contain n distinct ...
分类:
其他好文 时间:
2015-02-21 00:16:05
阅读次数:
445