Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.题意:给一个升序排好的...
分类:
其他好文 时间:
2014-12-27 20:23:04
阅读次数:
235
Given an directed graph, a topological order of the graph nodes is defined as follow:For each directed edge A-->B in graph, A must before B in the ord...
分类:
其他好文 时间:
2014-12-27 00:15:16
阅读次数:
330
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary tr...
分类:
其他好文 时间:
2014-12-26 16:46:08
阅读次数:
159
MySQLversion:5.5.36xxx@172.17.62.395.5.36-logxxx10:19:54>showindexfromFD_FINANCE_ACC_HIS;+--------------------+------------+------------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+--------..
分类:
数据库 时间:
2014-12-26 14:53:56
阅读次数:
293
原sql:selectcount(*)frommpay_ordermpayOrderinnerjoinmrecharge_order_infoorderinfoonmpayOrder.order_num=orderinfo.order_numinnerjoinmpay_tradempayTradeonmpayOrder.order_num=mpayTrade.order_numwhereTRUEandleft(mpayTrade.trade_num,2)=‘10‘andTIMESTAMPDIFF(SECO..
分类:
数据库 时间:
2014-12-26 14:52:06
阅读次数:
661
/**
* // 格式化时保证注释体内容不变形
html标签
* @description:
* 描述方法的功能
* Order 排序方式 asc/desc // 多个排序字段 id asc ,project_name desc
* Order by 排序字段 ID
* @author:tan...
分类:
其他好文 时间:
2014-12-26 14:42:22
阅读次数:
207
题目描述:
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8,...
分类:
其他好文 时间:
2014-12-26 13:03:53
阅读次数:
169
In order to reuse the Fragment UI components, you should build each as a completely self-contained, modular component that defines its own layout and behavior. Once you have defined these reusable Fra...
分类:
其他好文 时间:
2014-12-26 09:45:18
阅读次数:
210
先花点时间理解一下一下英文的准确含义。request 表示“有礼貌的请求;正式的请求”,是下对上的要求;require表示order, demand, 是“命令,要求”之意,指上对下的要求1.boardboard既可以指理解为Tester端的gpib board,也可以理解为Handler端的gpi...
分类:
其他好文 时间:
2014-12-25 23:37:09
阅读次数:
228
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
这个问题比较简单,用递归是个不错的选择,我的C++代码实现如下:
class Solution {
public:
TreeNode *sortedArrayToBST(vecto...
分类:
其他好文 时间:
2014-12-25 22:09:34
阅读次数:
241