User Scott has updated the salary of one of the employees in the EMPLOYEES table and has not committed the transaction. What are the two types of lock ...
分类:
其他好文 时间:
2018-03-20 15:11:49
阅读次数:
157
[抄题]: Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You ...
分类:
其他好文 时间:
2018-03-14 18:45:30
阅读次数:
278
如上 想给ID==OutSide的div下的九个div分别赋上不同的颜色以行程九宫格。 这时用到了nth-child() 在样式里这样写 #OutSide div:nth-child(1){ background-color: red;} #OutSide div :nth-child(2){ ba ...
分类:
Web程序 时间:
2018-03-12 18:49:59
阅读次数:
269
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev ...
分类:
其他好文 时间:
2018-03-11 11:57:43
阅读次数:
150
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Inp ...
分类:
其他好文 时间:
2018-03-09 14:08:24
阅读次数:
155
MySQL官方文档提供的运算符优先级如下: Operator precedences are shown in the following list, from highest precedence to the lowest. Operators that are shown together o ...
分类:
数据库 时间:
2018-03-08 12:03:29
阅读次数:
175
周知,表格的斑马条纹只需简单的运用伪类 :nth-child()/:nth-of-type()来处理就好了: 但是把这种效果运用在文本行的时候就有点力不从心了,尽管js可以实现这种功能,但是这在理论上有违纯粹原则(javascript不应该掺合到样式层面来), 而且过多的DOM元素还会拖累整个页面的 ...
分类:
其他好文 时间:
2018-03-08 10:37:41
阅读次数:
142
删除链表中倒数第n个节点 时间复杂度要控制在O(n)Solution:设置2个指针,一个用于确定删除节点的位置,一个用于计算倒数间距n。移动时保持2个指针同时移动。 ...
分类:
编程语言 时间:
2018-03-07 23:55:31
阅读次数:
252
mongoexport -d test -c item --type=csv -f salary,city,workYear,companyShortName -o user.csvmongoexport -d test -c user --type=csv -f tel,type,userName ...
分类:
数据库 时间:
2018-03-04 23:56:57
阅读次数:
287
如果让你求区间第$k$大,你会怎么做呢? 主席树?确实是个不错的选择(不过像我这种垃圾还是乖乖打暴力吧) 在c++的stl库中,提供了 这样一个函数 它的用法是 这样它会使a这个数组中区间$(l,r)$内的第$k$大的元素处在第$k$个位置上(相对位置) 但是它并不保证其他元素有序! 不过根据网友的 ...
分类:
其他好文 时间:
2018-03-04 10:32:31
阅读次数:
143