码迷,mamicode.com
首页 >  
搜索关键字:zero clipboard    ( 2343个结果
LeetCode Regular Expression Matching 网上一个不错的实现(非递归)
'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input string (not partial).The...
分类:其他好文   时间:2015-04-22 20:34:04    阅读次数:122
python端口扫描
简易版:#author:Blood_Zero#coding:utf-8import socketimport sysPortList=[21,22,23,25,80,135]#host=sys.argv[1]for i in PortList: sock=socket.socket() ...
分类:编程语言   时间:2015-04-22 00:26:13    阅读次数:161
LeetCode 10 Regular Expression Matching
题目: Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire...
分类:其他好文   时间:2015-04-21 22:49:16    阅读次数:168
python模块-platform
#author:Blood_Zero#coding:utf-8import platformprint dir(platform) #获取platform函数功能platform.architecture() #获取系统架构platform.system() # 获取操作系统类型platfor...
分类:编程语言   时间:2015-04-20 22:16:27    阅读次数:122
java.lang.Math.pow 实例
先上实例: ????????System.out.println(Math.pow(1d,?0)?+?"?If?the?second?argument?is?positive?or?negative?zero,?then?the?result?is?1.0."); ????????System.out.println(...
分类:编程语言   时间:2015-04-20 19:27:33    阅读次数:240
Baidu笔试-01序列排序的交换次数
问题描述: 问题分析: 解法一:设置双指针,start,end;当data[start]=‘1’,data[end]=’0’时,表示需要进行交换,次数加1;否则data[end]=’1’则前移end指针;data[start]=‘0’则后移start指针; 该算法仅需遍历一次 解法二:先遍历一次计算字符数组中0的个数zero,再计算前zero个字符中1的个数,即是要交换到后面的...
分类:编程语言   时间:2015-04-20 14:53:39    阅读次数:110
#15 3Sum
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:其他好文   时间:2015-04-20 00:17:24    阅读次数:118
[LeetCode] 3Sum
3Sum Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a tr...
分类:其他好文   时间:2015-04-19 16:13:49    阅读次数:130
【3Sum】cpp
题目:Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Ele...
分类:其他好文   时间:2015-04-19 16:01:36    阅读次数:137
[.NET] 自己实现任务池(模仿线程池)
线程池虽然好用,但限制也不少:(1)总觉得默认的 MaxThread 小了一点,每次使用都要手工调大= =(2)任务不能等待完成(3)任务一旦加入不能取消,甚至不知道是正在排队/正在执行/执行完毕(4)最恶心的一点,全是 MTAThread,好多COM都不能用。ClipBoard、WebBrowse...
分类:编程语言   时间:2015-04-19 06:24:38    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!