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.
/**
* Definition for s...
分类:
其他好文 时间:
2014-10-12 13:59:18
阅读次数:
182
Subsets II
Total Accepted: 19243 Total
Submissions: 71148My Submissions
Given a collection of integers that might contain duplicates, S, return all possible subsets.
Note:
Elements...
分类:
其他好文 时间:
2014-10-12 11:47:57
阅读次数:
190
Remove Duplicates from Sorted List I
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...
分类:
其他好文 时间:
2014-10-11 16:50:15
阅读次数:
206
Remove Duplicates from Sorted Array I
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for an...
分类:
其他好文 时间:
2014-10-11 16:19:56
阅读次数:
140
最近在一用户处巡检,发现其核心交换机cisco4507R一个引擎有报警,查看module情况如下:4507r#showmoduleChassisType:WS-C4507RPowerconsumedbybackplane:40WattsModPortsCardTypeModelSerialNo.---+-----+--------------------------------------+------------------+--------..
分类:
其他好文 时间:
2014-10-11 10:52:55
阅读次数:
611
前言: 以前做了cacti上展示redis性能报表图,可以看到redis的性能变化趋势图,但是还缺了实时报警通知的功能,现在补上这一环节。在redis服务瓶颈或者异常时候即使报警通知,方便dba第一时间处理维护。1,下载redis监控插件Redis已经在服务器安装好了,所以直接可以进行监控,redis集群安装请参考:http://blog.itpub.net/26230597/viewspa...
分类:
移动开发 时间:
2014-10-10 23:59:04
阅读次数:
396
Search in Rotated Sorted Array II
Total Accepted: 18500 Total
Submissions: 59945My Submissions
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this...
分类:
其他好文 时间:
2014-10-10 21:35:14
阅读次数:
239
题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo...
分类:
其他好文 时间:
2014-10-10 20:19:34
阅读次数:
176
Search in Rotated Sorted Array II
Total Accepted: 18488 Total
Submissions: 59914My Submissions
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this...
分类:
其他好文 时间:
2014-10-10 17:26:24
阅读次数:
122
1、安装相关组建yuminstallmailxsendmail*chkconfigsendmailonservicesendmailstart2、测试邮件echo"HelloWorld"|mailabc@abc.com3、编辑command.cfg#‘notify-host-by-email‘commanddefinitiondefinecommand{ command_name notify-host-by-email command_line /usr/bin/printf"..
分类:
移动开发 时间:
2014-10-09 20:13:28
阅读次数:
214