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 删除一hang. 局部刷新数据。 $(".del").click(function(){ var id = $(this).attr("hid"); var t = $(this)....
分类:
Web程序 时间:
2014-07-22 22:53:15
阅读次数:
1234
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
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:如下图所示的一棵树: ...
分类:
其他好文 时间:
2014-07-19 19:00:44
阅读次数:
262
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.类似http://www.cn...
分类:
其他好文 时间:
2014-07-19 18:19:06
阅读次数:
243
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
对集合进行遍历 只能获取集合元素,但是不能对集合进行操作。 迭代器除了遍历,还可以进行remove的动作。 如果是用ListIterator,还可以在遍历过程中进行增删改查的动作。 for(String s : al) { s = } 传统for和高级for的区别? 1. 高级for有一个局限性,必...
分类:
其他好文 时间:
2014-07-19 17:31:32
阅读次数:
198
介绍这篇文章的目的是为了介绍std::vector,怎样恰当地使用它们的成员函数等操作。本文中还讨论了条件函数和函数指针在迭代算法中使用,如在remove_if()和for_each()中的使用。通过阅读这篇文章读者应该可以有效地使用vector容器,并且应该不会再去使用C类型的动态数组了。Vect...
分类:
其他好文 时间:
2014-07-19 12:20:11
阅读次数:
240
Y2K Accounting Bug
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10117
Accepted: 5043
Description
Accounting for Computer Machinists (ACM) has sufferred fr...
分类:
其他好文 时间:
2014-07-19 08:11:11
阅读次数:
197
默认情况下ubuntu无firewall,除非你自己安装了,怎么装的就怎么删呗。。
如果是已启用的自备的iptables 删了就行了
sudo apt-get remove iptables。...
分类:
其他好文 时间:
2014-07-18 18:02:19
阅读次数:
213