(1)打开: 右击选审查元素 或者Ctrl+Shift+I 或者直接按F12(2)介绍:Elements(元素) 查看、编辑页面上的元素,包括HTML和CSSResource(资源) 查看到请求的资源情况,包括CSS、JS、图片、Cookies、HTML5的Database和Lo...
分类:
其他好文 时间:
2015-02-25 18:24:35
阅读次数:
118
最近在学设计模式,学到创建型模式的时候,碰到单例模式(或叫单件模式),现在整理一下笔记。 在《Design Patterns:Elements of Resuable Object-Oriented Software》中的定义是:Ensure?a class only ha...
ALMoviePlayerControllerALMoviePlayerController is a drop-in replacement for MPMoviePlayerController that exposes the UI elements and allows for maximu...
分类:
其他好文 时间:
2015-02-24 23:25:46
阅读次数:
219
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6,...
分类:
其他好文 时间:
2015-02-24 22:10:07
阅读次数:
215
最近在做一个仿百度网盘的网页小应用,找到了一个优雅简洁的分页插件,和百度搜索的分页很相似,对他进行了二次封装,拿出来跟大家分享下插件源码/** * This jQuery plugin displays pagination links inside the selected elements. *...
分类:
编程语言 时间:
2015-02-24 21:00:17
阅读次数:
325
Rotate an array of n elements to the right by k steps.For example, with n=7n = 7 and k=3k = 3, the array [1,2,3,4,5,6,7][1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4][5,6,7,1,2,3,4].Note:
Try to come u...
分类:
其他好文 时间:
2015-02-24 18:44:30
阅读次数:
164
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 ...
分类:
其他好文 时间:
2015-02-23 15:26:34
阅读次数:
168
Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descending order....
分类:
其他好文 时间:
2015-02-19 20:42:09
阅读次数:
222
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.
题...
分类:
其他好文 时间:
2015-02-18 19:57:53
阅读次数:
216
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.这道题是要求把有序链表转为二叉搜索树,和之前那道Convert Sorted Ar...
分类:
其他好文 时间:
2015-02-18 08:24:13
阅读次数:
160