Good Q

2017-06-08
阅读 3 分钟
1.6k
{代码...} {代码...} {代码...}

LeetCode Weekly Contest 31

2017-06-05
阅读 3 分钟
1.2k
LeetCode Weekly Contest 31Q3 (7)Give a map with height int, width int; tree []int; squirrel []int; nuts [][]intCalculate the minimum steps for the squirrel to collect all the nuts and store them in the tree

LeetCode Weekly Contest 25

2017-05-30
阅读 4 分钟
2k
Given a list of strings, you need to find the longest uncommon subsequence among them. The longest uncommon subsequence is defined as the longest subsequence of one of these strings and this subsequence should not be any subsequence of the other strings.

SUM

2017-03-08
阅读 2 分钟
1.7k
Given an array of integers, return indices of the two numbers such that they add up to a specific target.

LeetCode Weekly Contest 21

2017-03-07
阅读 3 分钟
1.2k
Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to the multiple of k, that is, sums up to n*k where n is also an integer.

LeetCode Weekly Contest 22

2017-03-06
阅读 2 分钟
1.2k
531. Lonely Pixel IGiven a picture consisting of black and white pixels, find the number of black lonely pixels.

Rare TCP state 2 -- Single ESTABLISHED

2017-02-17
阅读 6 分钟
2.6k
Rare State 2 Circumstance Server listen on port with default backlog. Client initial a large number of connect at the same time. Demo {代码...} State After a massive current connect (with a relatively small backlog) [ESTABLISH (Client)| NULL (Server)]() Fix Solutions Disable SYN cookiesFor securi...

Rare TCP state 1 - one-way communication

2017-02-16
阅读 5 分钟
3.3k
Rare TCP state TCP State Machine Normal State Client Server closed closed closed listen (SYN) syn_sent syn_received (SYN, ACK) established (ACK) established established Client Server established established (DATA) <=== ===>(DATA) established established Client Server (FIN) fin_wait1 (ACK) f...