Wrote by mutouyun. (http://darkc.at/cxx-type-list/)
群里有个朋友要实现这么一个功能:如何在编译期把一个函数类型的参数减少一个。
简单来说,就是实现下面这个模板:
remove_func_par::type; // type = void(int, long)
根据输入的编译期整数,把函数参数表里对应的参数干掉一个。
为了实现...
分类:
编程语言 时间:
2014-06-05 06:04:09
阅读次数:
273
Given a sorted linked list, delete all nodes
that have duplicate numbers, leaving onlydistinctnumbers from the original
list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-06-04 20:19:49
阅读次数:
282
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-06-04 19:19:16
阅读次数:
205
Follow up for "Remove Duplicates":What if
duplicates are allowed at mosttwice?For example,Given sorted array A
=[1,1,1,2,2,3],Your function should ret...
分类:
其他好文 时间:
2014-06-04 19:12:47
阅读次数:
273
參考文章:http://blog.csdn.net/yang1982_0907/article/details/171004090. 用root账户登录系统1.
卸载iBusyum remove ibus2. 将RHEL 6.4的软件源更换为CentOS 6.4的软件源参考博文:http://blo...
分类:
其他好文 时间:
2014-06-03 13:56:35
阅读次数:
684
jQuery - 添加元素
append() - 在被选元素的结尾插入内容
prepend() - 在被选元素的开头插入内容
after() - 在被选元素之后插入内容
before() - 在被选元素之前插入内容
这四个方法有什么区别呢。。。
jQuery - 删除元素
remove() - 删除被选元素(及其子元素)
empty() - 从被选元素中删除子元素...
分类:
编程语言 时间:
2014-06-03 04:58:37
阅读次数:
366
【题目】
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
【题意】
给定一个已排序的链表,删除其中的重复元素
【思路】
维护两个指针prev和cur, cur指针负责扫描链表,prev指向cur的前一...
分类:
其他好文 时间:
2014-06-03 04:05:39
阅读次数:
231
【题目】
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1->1->2->3, return 2->3.
【题意】
给定一个有序链表,删出其中重复出现的值...
分类:
其他好文 时间:
2014-05-31 21:14:11
阅读次数:
333
转自:https://www.centos.bz/2011/07/howto-remove-lnmp/killall
nginx/etc/init.d/mysql stopkillall mysqld/usr/local/php/sbin/php-fpm stopkillall
php-cgirm ...
分类:
其他好文 时间:
2014-05-31 15:56:05
阅读次数:
277
import java.util.ArrayList;import
java.util.Iterator;import java.util.List;public class IteratorTest{ public
static void main(String[] args) { ...
分类:
其他好文 时间:
2014-05-30 18:48:31
阅读次数:
446