3SumGiven 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:El...
分类:
编程语言 时间:
2015-05-30 21:05:55
阅读次数:
1059
1 package editor; 2 3 import java.io.*; 4 import java.awt.*; 5 import java.awt.datatransfer.Clipboard; 6 import java.awt.datatransfer.DataFlav...
分类:
编程语言 时间:
2015-05-30 00:34:40
阅读次数:
182
Regular Expression Matching
题目:
Implement regular expression matching with support for ‘.’ and ‘*’.
‘.’ Matches any single character.
‘*’ Matches zero or more of the preceding element.
Th...
分类:
其他好文 时间:
2015-05-28 21:31:52
阅读次数:
197
话不多说,看代码。#include #ifndef ASSERT#include #define ASSERT assert#endif/*** 释放对象列表* @param items 对象列表* @return*/templatevoid zero_array(array& items){ AS...
分类:
其他好文 时间:
2015-05-28 07:05:35
阅读次数:
165
写的很丑的字典树。听王大神的话 需要改进。#include#include#include#includeusing namespace std;struct nn{ int zero; int one;}node[320005];int findd[35];int main(){ ...
分类:
其他好文 时间:
2015-05-26 20:36:29
阅读次数:
117
利用一维FFT查看正弦波频谱信息,所需的SIMULINK模型如下图1所示。Zero-OrderHold用于采样正弦波,设置方式如图2所示。BUffer用于缓存采样数据,深度可以设置,深度等于FFT的长度,设置方式如图3所示。FFT的点数跟BUFFER的深度相同,比如,buffer深度为1024,那么此处的FFT就采..
分类:
其他好文 时间:
2015-05-26 19:09:29
阅读次数:
284
Regular Expression MatchingImplement regular expression matchingwith support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of...
分类:
编程语言 时间:
2015-05-25 14:25:56
阅读次数:
734
zerosum解题报告--------------------------------------------------------------------------------------------------------------------------------------...
分类:
其他好文 时间:
2015-05-23 20:01:49
阅读次数:
114
1.Array 属性: constructor 所建立对象的函数参考 prototype 能够为对象加入的属性和方法 index For an array created by a regularexpression match, the zero-based index of the match ...
分类:
Web程序 时间:
2015-05-22 18:41:02
阅读次数:
117
使用time+dd+if测试磁盘IO速度写速度:timeddif=/dev/zeroof=test.dbfbs=8kcount=300000其中/dev/zero是一个伪设备,它只产生空字符流,对它不会产生IO,所以,IO都会集中在of文件中,of文件只用于写,所以这个命令相当于测试磁盘的写能力。输出的结果类似(因为一般更长测试时..
分类:
系统相关 时间:
2015-05-21 19:51:47
阅读次数:
209