Chinaunix首页 | 论坛 | 博客
  • 博客访问: 77182
  • 博文数量: 29
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 225
  • 用 户 组: 普通用户
  • 注册时间: 2014-03-06 15:31
文章分类

全部博文(29)

文章存档

2015年(18)

2014年(11)

我的朋友

发布时间:2015-01-17 11:16:55

题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length of 1.解决方案:点击(此处)折叠.........【阅读全文】

阅读(623) | 评论(0) | 转发(0)

发布时间:2015-01-14 17:44:08

题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).我的思路很简单,将两个数组合并为一个有序数组,程序如下:点击(此处)折叠或打开public class Solution {.........【阅读全文】

阅读(704) | 评论(0) | 转发(0)

发布时间:2015-01-14 16:44:47

题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and.........【阅读全文】

阅读(564) | 评论(0) | 转发(0)

发布时间:2015-01-08 10:14:40

使用时需按情况修改,并添加如iptables -A INPUT -j NFQUEUE --queue-num 0之类的iptables规则                                   &n.........【阅读全文】

阅读(1944) | 评论(2) | 转发(0)

发布时间:2015-01-06 16:38:48

偶尔在网上看到了<<用netfilter_queue 在用户态修改网络数据包的例子程序>>这篇文章,并结合libnetfilter_queue-0.0.17.tar.bz2中的例子,然后修改了一下tcp计算checksum部分,在linux2.6.24上用netfilter_queue在用户态实现NAT程序功能: 将输出端目的地为 220.181.37.55 的包,都改为目的地为 202.118.236.130,输入段反.........【阅读全文】

阅读(1076) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册