Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from ...
分类:
其他好文 时间:
2014-11-26 16:29:34
阅读次数:
164
--查了当前数据库是事务隔离级别
DBCC USEROPTIONS
【测试一:丢失更新】
--事务1
begin tran
select * from dbo.Test(nolock) where name = 'kk'
waitfor delay '00:00:05'
update T set info = 'A更改' from Test T(nolock) where name...
分类:
数据库 时间:
2014-11-26 14:22:15
阅读次数:
312
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:
其他好文 时间:
2014-11-26 13:58:49
阅读次数:
255
erlang添加openssl支持(erlang连接mysql使用):1、配置openssl编译参数:./configure --prefix=/usr/local/service/openssl2、修改makefile编译选项,在CFLAG参数中加上-fPIC-shared 执行make&&mak...
分类:
其他好文 时间:
2014-11-26 06:38:53
阅读次数:
204
输入框检测
只允许输入数字,否则红色警示
提交
var textbox=document.forms[0].elements[0];
//获取焦点事件
textbox.onfocus=function(){
if(textbox.style.backgroundColor != "red"){
textbox.style.backgr...
分类:
编程语言 时间:
2014-11-25 23:33:51
阅读次数:
257
template class shared_ptr;template class weak_ptr;// This class is an internal implementation detail for shared_ptr.class SharedPtrControlBlock {tem.....
分类:
其他好文 时间:
2014-11-25 23:16:19
阅读次数:
207
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.分析:我们比较熟悉由一个sorted array生成一个BST,不同的是这里的数据...
分类:
其他好文 时间:
2014-11-25 23:01:58
阅读次数:
213
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new length.
#...
分类:
其他好文 时间:
2014-11-25 16:29:20
阅读次数:
256
原生js 的add函数为下拉菜单增加选项1.object.add(oElement [, iIndex]) index 可选参数:指定元素放置所在的索引号,整形值。如果没有指定值,将添加到集合的最后。想加到最前面,指定索引值0就可以了。@@注意: add方法为js原生方法,属于element元素对....
分类:
其他好文 时间:
2014-11-25 15:52:41
阅读次数:
209
在 Linux上安装Magent代理服务器软件时,在后面的文章会介绍介绍了Magent解决Memcached服务的负载均衡和容错上。我这边先介绍安装Magent过程中出现的问题...
分类:
其他好文 时间:
2014-11-25 12:52:14
阅读次数:
246