原题地址:http://oj.leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/题意:根据二叉树的先序遍历和中序遍历恢复二叉树。解题思路:可以参照http://www.cnblogs.com...
分类:
编程语言 时间:
2014-05-12 14:24:57
阅读次数:
324
原题地址:http://oj.leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/题意:根据二叉树的中序遍历和后序遍历恢复二叉树。解题思路:看到树首先想到要用递归来解题。以这道题为例:如果一...
分类:
编程语言 时间:
2014-05-12 14:09:28
阅读次数:
321
查找所有重复标题的记录:SELECT *FROM t_info aWHERE ((SELECT
COUNT(*)FROM t_infoWHERE Title = a.Title) > 1)ORDER BY Title
DESC一。查找重复记录1。查找全部重复记录Select * From 表 Whe...
分类:
数据库 时间:
2014-05-12 13:12:01
阅读次数:
384
下面为您介绍的语句用于实现Oracle查询用户所有表,如果您对oracle查询方面感兴趣的话,不妨一看。select * from
all_tab_comments -- 查询所有用户的表,视图等select * from user_tab_comments --
查询本用户的表,视图等select...
分类:
数据库 时间:
2014-05-12 11:18:14
阅读次数:
362
1.获取最新版本
https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.1.tgz2.解压并进入bin目录tar
zxvf mongodb-linux-x86_64-2.6.1.tgzcd /opt/database/mongodb-li...
分类:
数据库 时间:
2014-05-12 10:13:42
阅读次数:
398
Given a string S and a string T, count the
number of distinct subsequences of T in S.A subsequence of a string is a new
string which is formed from th...
分类:
其他好文 时间:
2014-05-12 09:37:51
阅读次数:
287
iwangzheng.com16:57 [root@a02.cmsapi]$ mysql
-u-p -h10.103.xx.xxWelcome to the MySQL monitor. Commands end with ; or \g.Your
MySQL connection id is 57...
分类:
数据库 时间:
2014-05-10 20:57:56
阅读次数:
441
Given an integer, convert it to a roman
numeral.Input is guaranteed to be within the range from 1 to 3999.public class
Solution { public String int...
分类:
其他好文 时间:
2014-05-10 20:31:10
阅读次数:
335
Given a stringSand a stringT, count the number
of distinct subsequences ofTinS.A subsequence of a string is a new string which
is formed from the orig...
分类:
其他好文 时间:
2014-05-10 19:10:58
阅读次数:
389
之前只是看过关于SQL Server
2008中添加了percent功能,今天终于有机会试了!今天处理好的数据,上头让修改下,把营销结果为Null的值20%改为“未通过”,80%的改为“拒绝”。于是乎就想到了percent:首先使用了下select
top 20 percent from xxxta...
分类:
数据库 时间:
2014-05-10 07:04:57
阅读次数:
418