码迷,mamicode.com
首页 >  
搜索关键字:element    ( 12012个结果
【LeetCode】Single Number
题目      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
Remove Duplicates from Sorted List
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
Leetcode:Singel Number
问题描述: 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
[LeetCode] Find Minimum in Rotated Sorted Array
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
JS 全屏代码
// 判断各种浏览器,找到正确的方法 function launchFullscreen(element) { if(element.requestFullscreen) { element.requestFullscreen(); } else if(element.mozRequestFullScreen) { element.mozRequestFullScreen(...
分类:Web程序   时间:2014-10-24 13:00:34    阅读次数:198
css盒子模型及实例
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
【LeetCode】Set Matrix Zeroes 解题报告
今天看到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
JS兼容性问题---offsetTop
题目: 获取指定元素距离浏览器顶部的距离方案: var distanceTop = element.offsetTop;不兼容浏览器: IE 7及以下原因: 未知, 貌似获得到的值是IE 8的offsetTop值解决方案: position: relati...
分类:Web程序   时间:2014-10-23 20:42:01    阅读次数:489
JS兼容性问题---innerHTML
题目: 获取指定内容的节点方案:element.innerHTML == str;不兼容浏览器: IE 7及以下原因: IE 7以下不将空白作为一个节点, 当节点后面有换行或者空白的时候获取到的innerHTML会多一个空格解决方案:element.innerHTML == str || eleme...
分类:Web程序   时间:2014-10-23 19:17:06    阅读次数:180
Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:其他好文   时间:2014-10-22 19:46:16    阅读次数:220
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!