原题地址:http://oj.leetcode.com/problems/binary-tree-level-order-traversal/题意:二叉树的层序遍历的实现。解题思路:二叉树的层序遍历可以用bfs或者dfs来实现。这里使用的dfs实现,代码比较简洁。实际上,二叉树的先序遍历就是dfs实...
分类:
编程语言 时间:
2014-05-14 03:25:59
阅读次数:
428
原题地址:http://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/题意:Given
a binary tree, return thebottom-up level ordertraversal of its node...
分类:
编程语言 时间:
2014-05-12 22:03:27
阅读次数:
581
查找所有重复标题的记录: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 singly linked list where elements are
sorted in ascending order, convert it to a height balanced BST.1.
将LinkedList的值保存到一个数组中,转化成Convert Sorte...
分类:
其他好文 时间:
2014-05-12 05:53:09
阅读次数:
367
题目描述Jim is boss of a big company . There are so
many workers in his company that it will take a long time for his command send
to all of his workers ....
分类:
其他好文 时间:
2014-05-12 04:51:29
阅读次数:
307
/* Endian swapping module.Simple example with
Avalon streaming interfaces and a CSR busAvalon-ST has readyLatency of
0Avalon-MM has fixed readLatency ...
分类:
其他好文 时间:
2014-05-11 23:21:17
阅读次数:
423
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151
For each list of words, output a line with each word reversed without changing the order of the words.
This problem contains multi...
分类:
其他好文 时间:
2014-05-11 22:20:43
阅读次数:
443
offset大的时候的比较SELECT * FROM persons LIMIT
200000,10;耗时0.078sSELECT *FROM persons WHERE id>=(SELECT id FROM persons
ORDER BY id LIMIT 200000,1) LIMIT 10...
分类:
数据库 时间:
2014-05-11 16:23:57
阅读次数:
322
原文地址:Authentication options|Basic authorizationIf
you want to use simple binds with user DN and password within a Java component,
in order to authenti...
分类:
其他好文 时间:
2014-05-10 20:27:03
阅读次数:
485
1:as给表另外命名2:desc倒序3:order
by分组4:select*form表名where条件
分类:
其他好文 时间:
2014-05-10 06:44:37
阅读次数:
317