自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 LeetCode--114. Flatten Binary Tree to Linked List

【题目】 Given a binary tree, flatten it to a linked list in-place.For example, Given 1 / \ 2 5 / \ \ 3 4 6The flattened tree should look like: 1 \ 2 \

2017-03-21 19:39:02 74

转载 DOS DDOS DRDOS原理

DoS是Denial of Service的简写就是拒绝服务,而DDoS就是Distributed Denial of Service的简写就是分布式拒绝服务,而DRDoS就是Distributed Reflection Denial of Service的简写,这是分布反射式拒绝服务的意思。  不过这3中攻击方法最厉害的还是DDoS,那个DRDoS攻击虽然是新近出的一种攻击方法,但它只是DDoS攻

2017-03-15 15:42:57 3370

原创 LeetCode--97. Interleaving String

【题目】 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example, Given: s1 = “aabcc”, s2 = “dbbca”,When s3 = “aadbbcbcac”, return true. When s3 = “aadbbbaccc”, return

2017-03-15 14:16:51 218

原创 LeetCode--152. Maximum Product Subarray

【题目】Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the largest p

2017-03-14 15:26:07 188

原创 Libnids--函数调用顺序之nids_run()

调用完nids_init()后便是进入nids_run()开始监听网络接口并处理抓获的数据包nids_run()int nids_run(){ if (!desc) { strcpy(nids_errbuf, "Libnids not initialized"); return 0; } START_CAP_QUEUE_PROCESS_THREAD();

2017-03-13 20:11:43 974

原创 Libnids--函数调用顺序之nids_init()

看了好几天,做个笔记理一下思路先贴一张nids_init()的图: nids_exit():释放之前被占用的资源;open_live():打开网络接口static int open_live(){ char *device; int promisc = 0; //初始化网络接口 if (nids_params.device == NULL) nids_pa

2017-03-13 16:58:13 1256 1

原创 LeetCode--20. Valid Parentheses

[题目] Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.For “(()”, the longest valid parentheses substring is “()”, whi

2017-03-13 10:32:09 261

原创 LeetCode--15 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: The solution set must not

2017-03-12 19:52:15 171

原创 LeetCode--8. String to Integer (atoi)

看了下这道题在LeetCode上的难度属于中等,但是通过率不高。下面来看题目[题目]Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see bel

2017-03-11 14:20:33 232

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除