- 博客(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 80
转载 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 3401
原创 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 226
原创 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 196
原创 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 984
原创 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 1268 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 267
原创 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 179
原创 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 238
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人