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






发布时间: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.解决方案:点击(此处)折叠.........【阅读全文】

阅读(108) | 评论(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 {.........【阅读全文】

阅读(166) | 评论(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.........【阅读全文】

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

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

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

阅读(878) | 评论(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程序功能: 将输出端目的地为 的包,都改为目的地为,输入段反.........【阅读全文】

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

登录 注册