码迷,mamicode.com
首页 >  
搜索关键字:remove    ( 8897个结果
[leetcode]Remove Nth Node From End of List
Remove Nth Node From End of ListGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2.....
分类:其他好文   时间:2014-07-22 22:53:35    阅读次数:220
jQuery 中$(this).parent().parent().remove()无效。
在写文章系统的删除功能。需要删除一行数据。在删除的页面,需要jQuery 删除一hang. 局部刷新数据。 $(".del").click(function(){ var id = $(this).attr("hid"); var t = $(this)....
分类:Web程序   时间:2014-07-22 22:53:15    阅读次数:1234
LeetCode: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-07-19 22:19:36    阅读次数:202
Fedora20的一些个人配置
1,关闭蜂鸣器edit /etc/bashrcsetterm -blength 0#setterm -bfreq 10 #这个可以设置声音频率2,vim 的一些stuf安装vim1,先卸载vim-minimal: # yum remove vim-minimal2,再安装: # yum instal...
分类:其他好文   时间:2014-07-19 18:03:19    阅读次数:209
foreach学习笔记
对集合进行遍历 只能获取集合元素,但是不能对集合进行操作。 迭代器除了遍历,还可以进行remove的动作。 如果是用ListIterator,还可以在遍历过程中进行增删改查的动作。 for(String s : al) { s = } 传统for和高级for的区别? 1. 高级for有一个局限性,必...
分类:其他好文   时间:2014-07-19 17:31:32    阅读次数:198
STL vector使用方法介绍
介绍这篇文章的目的是为了介绍std::vector,怎样恰当地使用它们的成员函数等操作。本文中还讨论了条件函数和函数指针在迭代算法中使用,如在remove_if()和for_each()中的使用。通过阅读这篇文章读者应该可以有效地使用vector容器,并且应该不会再去使用C类型的动态数组了。Vect...
分类:其他好文   时间:2014-07-19 12:20:11    阅读次数:240
java中的Iterator和Iterable
1.Iterable接口在java.lang包中;Iterator接口在java.util包中2.Iterable中只有一个方法,那就是返回一个Iterator迭代器:Iterator iterator() 而Iterator中有关于迭代器的核心功能,next(),hasNext(),remove(...
分类:编程语言   时间:2014-07-18 19:06:45    阅读次数:4190
LeetCode Remove Nth Node From End of List
class Solution {public: ListNode *removeNthFromEnd(ListNode *head, int n) { if (head == NULL) return NULL; ListNode* pre = NULL; ...
分类:其他好文   时间:2014-07-18 18:24:55    阅读次数:209
Ubuntu下关闭防火墙
默认情况下ubuntu无firewall,除非你自己安装了,怎么装的就怎么删呗。。 如果是已启用的自备的iptables 删了就行了 sudo apt-get remove iptables。...
分类:其他好文   时间:2014-07-18 18:02:19    阅读次数:213
LeetCode "Remove Element"
Since no order requirement, we can simply swap the target value to the last non-target-value in the array - if the last non-target-value is not behind...
分类:其他好文   时间:2014-07-18 17:36:41    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!