原题地址: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
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
sw-engine-cgiPHP MongoDB database drivermongodb
database driver,数据库驱动;
分类:
其他好文 时间:
2014-05-10 07:30:15
阅读次数:
261
之前只是看过关于SQL Server
2008中添加了percent功能,今天终于有机会试了!今天处理好的数据,上头让修改下,把营销结果为Null的值20%改为“未通过”,80%的改为“拒绝”。于是乎就想到了percent:首先使用了下select
top 20 percent from xxxta...
分类:
数据库 时间:
2014-05-10 07:04:57
阅读次数:
418
现在又很多工具能将文字转换成图片,这样就可以发送长微博,其实python实现这很容易的,主要就是用到了pygame模块
import os
import pygame
from pygame.locals import *
pygame.init()
text = u"这是一段测试文本,test 123。"
font = pygame.font.SysFont('SimHei', 14)
...
分类:
编程语言 时间:
2014-05-10 04:25:52
阅读次数:
620
需要每隔一段时间选取最老的商户更新时间戳:
update DP_Shop set DP_Shop.LastDate = now() where DP_Shop.ShopId in (select ShopId from DP_Shop order by LastDate limit 5);
ERROR 1235 (42000): This version of MySQL doesn't ...
分类:
数据库 时间:
2014-05-10 04:22:58
阅读次数:
423
Install INDY 10 dari : G:\D\My\ Source \DELPHI\
DELPHI7 \Indy10\ :从上面打开第3行---保存---运行SRChttp://sp.j8er.org/s3
废品1seen--------------------- 废品2
分类:
数据库 时间:
2014-05-10 03:08:31
阅读次数:
331
Problem DescriptionThere are N villages, which
are numbered from 1 to N, and you should build some roads such that every two
villages can connect to e...
分类:
其他好文 时间:
2014-05-10 02:28:50
阅读次数:
374