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-09-13 20:01:15
阅读次数:
205
由于要在应用系统主界面报警图标的右上角显示带数字的红色气泡,以便直观的实现提醒功能,特选取jqMobi开发框架作为实现技术,并把实现过程记录下来。...
分类:
其他好文 时间:
2014-09-12 15:12:23
阅读次数:
232
题意:在某些点上安装首次访问时候会报警的机器,给出报警嗲你的顺序,问是否合法。
思路:按所给的序列,每个进来时判断这个点目前能否达到(第一个可达总是),若能,则该点进行扩展遍历所有没有报警器的点,遇到有的报警器的标记可达就返回。
预判:判断原图连图性。
#include
#include
#include
#include
#include
using namespace s...
分类:
其他好文 时间:
2014-09-12 10:17:53
阅读次数:
240
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array。...
分类:
其他好文 时间:
2014-09-11 17:28:02
阅读次数:
207
zabbix是个非常强大的监控工具,可以监控linux和windows的服务器数据,也可以通过自定义key来扩展默认的监控项,但是自带的邮件报警提供的信息却不太友善。本文想通过自定脚本的方式,实现在报警邮件的同时发送对应的图像和url连接。步骤如下:创建一个脚本媒体报警:修改zabbix..
分类:
编程语言 时间:
2014-09-11 15:32:38
阅读次数:
414
近来有些东西需要监控报警发邮件,然后在网上找了点材料,自己写了一个简单发送邮件的脚本,主要就是运用python的smtplib模块,分享给大家看一下: #!/usr/bin/env python # -*- coding: utf-8 -*- #导入smtplib和MIMEText...
分类:
编程语言 时间:
2014-09-10 15:29:40
阅读次数:
235
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-09-10 09:26:30
阅读次数:
198
最近找工作,免不了看CC150 刷 LeetCode 来练手,练习之余也向各路大神 系统并且深入的学习、巩固一下算法知识。一. 线性表1. 数组 Remove Duplicates from Sorted Array Remove Duplicates from Sorted Array II .....
分类:
其他好文 时间:
2014-09-10 08:21:50
阅读次数:
246
Problem Description:
Given a collection of integers that might contain duplicates, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution se...
分类:
其他好文 时间:
2014-09-09 21:35:29
阅读次数:
281
n个点,m条边,k个点有报警器,每个报警器经过后报警一次就不能再使用。
L次报警,接下来L个数字是一次次的报警顺序
保安每经过一个报警器,报警器就报一次警;
判断保安在这种报警顺序下,有没有可能已经把所有的点都走过了一遍。可能yes 不可能no;...
分类:
其他好文 时间:
2014-09-09 18:27:49
阅读次数:
225