--删除双击代码全选1drop procedure if exists up_common_select --创建双击代码全选1234567891011121314CREATE PROCEDURE `up_common_select` ( in t_name varchar(50) ) ...
分类:
数据库 时间:
2014-09-09 15:28:28
阅读次数:
258
ProblemWhile indexes can speed up execution of queries several fold as they can make the querying process faster, there is overhead associated with th...
分类:
数据库 时间:
2014-09-09 15:23:08
阅读次数:
376
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-09-09 15:11:38
阅读次数:
140
给定两个二叉树T1,T2判断T1是否是T2的子树
首先在T2中查找T1的根节点,如果找不到,
则T1不是T2的子树,如果能找到,我们可以
遍历T1,检查T1的每个结点是否对应的存在T2
中。
代码:
struct TreeNode
{
int data;
TreeNode* leftChild;
TreeNode* rightChild;
};
bool isExited(co...
分类:
其他好文 时间:
2014-09-09 12:52:58
阅读次数:
171
最近做了个数据管理工具,发生了比较“奇怪”的问题,在eclipse里面直接运行时,功能都可以正常使用,但是导出成为jar包放在桌面就不行了,有的按钮就失效了,或者界面不能正常显示。记录解决思路与过程如下:
1.难道是导出的jar包不是最新的代码,于是我试了试validate和clean up。
结果:没用!
2.用反编译工具将导出的jar包反编译
结果:发现导出的jar包代码是最...
分类:
其他好文 时间:
2014-09-09 12:33:38
阅读次数:
229
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:
其他好文 时间:
2014-09-09 12:23:58
阅读次数:
176
拖拽,主要用到onmousedown、onmouseover、onmouseup 拖拽的流程:(1)先点击 (2)在点下的物体被选中,进行move移动 (3)抬起鼠标,停止移动 【注】点击某个物体时,用oDiv即可,move和up是全局区域,也就是整个文档通用,应...
分类:
其他好文 时间:
2014-09-09 11:40:08
阅读次数:
200
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?算法:...
分类:
其他好文 时间:
2014-09-09 11:30:08
阅读次数:
188
原文地址:http://godick.maxcell.org/opencart-uploaded-file-with-chinese-file-name-doesnt-show-up.html 更改basename函数 admin\controller\common\filemanager.php ...
分类:
其他好文 时间:
2014-09-09 10:32:08
阅读次数:
295
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-09-07 23:40:25
阅读次数:
202