码迷,mamicode.com
首页 >  
搜索关键字:from www.texturepack    ( 57817个结果
[leetcode]Construct Binary Tree from Preorder and Inorder Traversal @ Python
原题地址:http://oj.leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/题意:根据二叉树的先序遍历和中序遍历恢复二叉树。解题思路:可以参照http://www.cnblogs.com...
分类:编程语言   时间:2014-05-12 14:24:57    阅读次数:324
[leetcode]Construct Binary Tree from Inorder and Postorder Traversal @ Python
原题地址:http://oj.leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/题意:根据二叉树的中序遍历和后序遍历恢复二叉树。解题思路:看到树首先想到要用递归来解题。以这道题为例:如果一...
分类:编程语言   时间:2014-05-12 14:09:28    阅读次数:321
sql语句查询重复的数据
查找所有重复标题的记录: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查询用户所有表,如果您对oracle查询方面感兴趣的话,不妨一看。select * from all_tab_comments -- 查询所有用户的表,视图等select * from user_tab_comments -- 查询本用户的表,视图等select...
分类:数据库   时间:2014-05-12 11:18:14    阅读次数:362
【LeetCode】Integer to Roman
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
Distinct Subsequences
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 top percent
之前只是看过关于SQL Server 2008中添加了percent功能,今天终于有机会试了!今天处理好的数据,上头让修改下,把营销结果为Null的值20%改为“未通过”,80%的改为“拒绝”。于是乎就想到了percent:首先使用了下select top 20 percent from xxxta...
分类:数据库   时间:2014-05-10 07:04:57    阅读次数:418
python将文字转换成图片
现在又很多工具能将文字转换成图片,这样就可以发送长微博,其实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
一个SQL update语句
需要每隔一段时间选取最老的商户更新时间戳:  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
hust 1102 Constructing Roads
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!