http.host==magentonotes.comhttp.host contains magentonotes.com//过滤经过指定域名的http数据包,这里的host值不一定是请求中的域名http.response.code==302 //过滤http响应状态码为302的数据包http.r...
分类:
Web程序 时间:
2015-06-09 19:30:27
阅读次数:
121
【题目链接】click here~~
【题目大意】:
You are given string s. Your task is to determine if the given string s contains two non-overlapping substrings “AB” and “BA” (the substrings can go in any order).
Input...
分类:
其他好文 时间:
2015-06-09 17:24:38
阅读次数:
105
Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i and j is at most k.分析:用m...
分类:
其他好文 时间:
2015-06-09 17:23:48
阅读次数:
124
You are given string s. Your task is to determine if the given string s contains
two non-overlapping substrings "AB" and "BA" (the substrings
can go in any order).
Input
The only line of...
分类:
其他好文 时间:
2015-06-09 17:21:51
阅读次数:
184
This problem gets much trickier than Contains Duplicate and Contains Duplicate II.The basic idea is to maintain a window of k numbers. For each new nu...
分类:
其他好文 时间:
2015-06-09 13:18:23
阅读次数:
144
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is...
分类:
其他好文 时间:
2015-06-09 11:54:27
阅读次数:
106
A classic problem of hash set. The unordered_set of C++ is very suitable for this problem.The code is as follows and it should be quite self-explanato...
分类:
其他好文 时间:
2015-06-09 11:43:57
阅读次数:
93
Given an array of integers and an integerk, find out whether there there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the d...
分类:
其他好文 时间:
2015-06-09 00:48:47
阅读次数:
105
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr...
分类:
其他好文 时间:
2015-06-09 00:44:40
阅读次数:
115
problems:Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and...
分类:
其他好文 时间:
2015-06-08 16:35:07
阅读次数:
119