Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:
其他好文 时间:
2014-12-30 20:33:53
阅读次数:
146
mysql 大数据分页和索引使用使用覆盖索引一个表建立在id,create_time上建立了索引。如下2个sql语句,执行时间一样。 因为查询字段id被索引覆盖。 select id from order_manage where create_time > '2014-01-01' or...
分类:
数据库 时间:
2014-12-30 18:47:29
阅读次数:
171
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
将增序数组转换为左右均衡的二叉查找树 根据查找树的性质 左子树所有节点小于根节点值 右边都大于根节点值 子树也遵循此性质 所以只要取出增序数组的中间值作为根节点 再将左右子数组进行递归 代码如下:
p...
分类:
其他好文 时间:
2014-12-30 17:18:32
阅读次数:
168
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced
BST.
将增序链表转换为均衡的二叉查找树 与数组转换相同 找到链表的中间结点 作为树的根节点进行赋值 再将链表以中间节点为界 分为左右子链表 进行递归赋值 代码如下:
publi...
分类:
其他好文 时间:
2014-12-30 17:11:39
阅读次数:
149
sql 单表/多表查询去除重复记录单表distinct多表group bygroup by 必须放在 order by 和 limit之前,不然会报错***************************************************************************...
分类:
数据库 时间:
2014-12-30 17:00:57
阅读次数:
207
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2014-12-30 15:17:01
阅读次数:
160
原文:mysql索引优化mysql 大数据分页和索引使用
使用覆盖索引 一个表建立在id,create_time上建立了索引。
如下2个sql语句,执行时间一样。 因为查询字段id被索引覆盖。
select id from order_manage where create_time > '2014...
分类:
数据库 时间:
2014-12-30 14:48:02
阅读次数:
179
How to determine sales Document item Category in sales order document Line item ? Make new entries for the appropriate document type and usage indicat...
分类:
其他好文 时间:
2014-12-30 13:16:24
阅读次数:
268
java.lang.NoClassDefFoundError: com.baidu.mapapi.BMapManager解决办法用百度地图,可能把工程复制了些位置吧 出错了解决办法:一、右击项目->properties->Java Build Path->Order and Export,在需要引用...
分类:
编程语言 时间:
2014-12-30 11:19:14
阅读次数:
136
Gson 是 Google 提供的用来在 Java 对象和 JSON 数据之间进行映射的 Java 类库。
比如:
public class Order {
public String id;
public String OrderName;
@Override
public String toString() {
return "id:"+id+",OrderName:"+Or...
分类:
移动开发 时间:
2014-12-29 23:07:59
阅读次数:
509