BlockingQueue 是接口 阻塞队列常用的方法有:抛出异常特殊值阻塞超时插入add(e)offer(e)put(e)offer(e, time, unit)移除remove()poll()take()poll(time, unit)检查element()peek()不可用不可用实现它的类有:...
分类:
其他好文 时间:
2014-10-25 21:22:50
阅读次数:
206
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with...
分类:
其他好文 时间:
2014-10-25 18:51:14
阅读次数:
143
题目: 设置元素的top样式方案:ele.style.top = "0px";不兼容浏览器: 所有IE浏览器原因: IE浏览器的top值为数值型, left、right、bottom同样受影响解决方案:if (!(ele.style.top = "0px")) { ele.style.top ...
分类:
Web程序 时间:
2014-10-25 18:43:36
阅读次数:
170
题目
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement i...
分类:
其他好文 时间:
2014-10-25 00:51:38
阅读次数:
214
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2014-10-24 18:10:21
阅读次数:
236
问题描述:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without ...
分类:
其他好文 时间:
2014-10-24 13:08:49
阅读次数:
221
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
Find the minimum element.
You may assume no duplicate exists in...
分类:
其他好文 时间:
2014-10-24 13:06:25
阅读次数:
224
// 判断各种浏览器,找到正确的方法
function launchFullscreen(element) {
if(element.requestFullscreen) {
element.requestFullscreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen(...
分类:
Web程序 时间:
2014-10-24 13:00:34
阅读次数:
198
1.概述css盒子模型
1>先看看w3c的概述
2>其实css每个元素都是一个盒子(盒模型)
2.css盒子模型种类
1>w3c标准模型—————————>element空间宽度 = content内容 + border + padding + margin
2>IE传统模型(IE6-)—————>element = content = content(border + paddin...
分类:
Web程序 时间:
2014-10-24 11:06:11
阅读次数:
326
今天看到CSDN博客的勋章换了图表,同时也增加显示了博客等级,看起来都听清新的,感觉不错!
【题目】
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
click to show follow up.
Follow up:
Did yo...
分类:
其他好文 时间:
2014-10-24 11:01:34
阅读次数:
219