题目You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a singl...
分类:
其他好文 时间:
2014-08-07 12:51:00
阅读次数:
188
基本步骤是 : (不是很准,请看完这篇)1.from2.join on3.where4.group by5.having6.order by7.select8.distinct ,sum,...9.limitjoin table 一定要有索引不然就是笛卡尔积了。inner join 的特别正确来讲 ...
分类:
数据库 时间:
2014-08-07 12:17:49
阅读次数:
295
基本上通过索引来解决 。通常索引键在where , group by , order by 相关的列一个表只能用一个索引(查询的时候)所以当要执行复杂查询时最好使用联合索引就是 index (a,b,c,d,....)where 需要注意的事,索引是左到右使用的 , 如果是 index(a,b,c)...
分类:
数据库 时间:
2014-08-07 12:14:59
阅读次数:
396
1 #!/bin/bash - 2 #=============================================================================== 3 # 4 # FILE: hex_change.sh 5 # 6 # ...
分类:
系统相关 时间:
2014-08-07 02:58:48
阅读次数:
384
thinking more after reading. Don't just read the papers.in addition, at begining, you'd better focus on abstract, introduction and discussion. little ...
分类:
其他好文 时间:
2014-08-06 22:47:12
阅读次数:
402
问题:输出二叉树的每一行的结点,从叶子到根/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(i...
分类:
其他好文 时间:
2014-08-06 22:04:02
阅读次数:
185
问题:从上到下打印二叉树的每一行分析:先搜出二叉树的高度,然后遍历高度,每次搜索一个高度class Solution {public: int dfs(TreeNode *root) { if(root==NULL) return 0; if(root->le...
分类:
其他好文 时间:
2014-08-06 21:53:32
阅读次数:
278
问题:The brackets must close in the correct order,"()"and"()[]{}"are all valid but"(]"and"([)]"are not.,判断符合条件的符号([])也符合分析:遇到左边符号进栈,右边符号就将栈顶出栈,若和当前遍历的符号...
分类:
其他好文 时间:
2014-08-06 21:44:02
阅读次数:
206
var array = [
{name: ‘a‘, phone: 1},
{name: ‘b‘, phone: 5},
{name: ‘d‘, phone: 3},
{name: ‘c‘, phone: 4}
]
array.sort(getSortFun(‘desc‘, ‘phone‘));
function getSortFun(order, sortBy...
分类:
Web程序 时间:
2014-08-06 19:35:32
阅读次数:
260
Game Description:
1. In a closed door, there will be a circle, and 30 numbers in the circle.
2. Each team (about 10 people) need to take number out of the circle by ascend order.
3. Each team has...
分类:
其他好文 时间:
2014-08-06 19:06:02
阅读次数:
359