发布了文章2017-06-08
{代码...} {代码...} {代码...}
发布了文章2017-06-05
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
发布了文章2017-05-30
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 s...
发布了文章2017-03-24
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.The distance between two adjacent cells is 1.Example 1: Input:0 0 00 1 00 0 0Output:0 0 00 1 00 0 0
发布了文章2017-03-08
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
发布了文章2017-03-07
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.
发布了文章2017-03-06
531. Lonely Pixel IGiven a picture consisting of black and white pixels, find the number of black lonely pixels.
发布了文章2017-02-17
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 (Serv...
发布了文章2017-02-16
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...