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 mat...
分类:
其他好文 时间:
2014-07-22 22:53:14
阅读次数:
184
1. 在Activity中的onCreate方法中加入如下代码: //Remove title bar
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
//Remove notification bar
this.getWindow().setFlags(WindowManager.L...
分类:
移动开发 时间:
2014-07-21 10:08:56
阅读次数:
362
Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, r...
分类:
其他好文 时间:
2014-07-21 09:38:07
阅读次数:
199
Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the or...
分类:
其他好文 时间:
2014-07-21 09:33:03
阅读次数:
218
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-07-21 09:08:29
阅读次数:
209
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-07-21 09:02:01
阅读次数:
161
点击后形成扩散圈这个名字有点奇怪,就是在一个div被点击后,会形成一个圈,往外扩散,直至塞满整个div。效果看这:http://codepen.io/crab/pen/aAbvf具体的实现就是在被点击的div中加入svg,然后其中的circle不断扩大,最后remove掉。在这里用了jquery库。...
分类:
其他好文 时间:
2014-07-21 00:08:06
阅读次数:
294
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2014-07-20 15:27:41
阅读次数:
216
以前对java中迭代方式总是迷迷糊糊的,今天总算弄懂了,特意的总结了一下,基本是算是理解透彻了。
1.再说Map之前先说下Iterator:
Iterator主要用于遍历(即迭代访问)Collection集合中的元素,Iterator也称为迭代器。它仅仅只有三个方法:hasNext(),next()和remove()
hasNext():如果仍有元素可以迭代,则返回 true。(换句话说,如...
分类:
编程语言 时间:
2014-07-19 23:28:49
阅读次数:
359
先从一个例子开始讲起,以下是jdk1.7中的迭代器接口的代码(去掉了注释的部分): public interface Iterator { boolean hasNext(); E next(); void remove();} 程序开发的老油条们都不太喜欢这个接口的remove方法,原因可能是: ...
分类:
其他好文 时间:
2014-07-19 23:01:14
阅读次数:
206