原题地址: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
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
一、安装postgreSQL安装完成后会默认生成一个名为postgres的用户和一个名为postgres的数据库。可以使用自带的psql.exe工具来登录。其帮助信息如下连接到本地的postgreSQL
instance的命令如下:其中:-U指定连接用的用户名,-d指定连接到的数据库名,-h指定po...
分类:
数据库 时间:
2014-05-10 22:51:15
阅读次数:
515
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
1、环境描述
一台10.0.0.201SQL节点、管理节点
一台10.0.0.202做一个数据节点
一台10.0.0.203做一个数据节点
2、安装Mysql_custter
在MGM管理节点、SQL节点、NDB节点执行同一操作
#:groupaddmysql
#:useraddmysql-gmysql-s/sbin/nologin
#:tar–xvfmysql-cluster-gpl-7.1.15-l..
分类:
数据库 时间:
2014-05-10 03:57:21
阅读次数:
473