建立连接的三次握手以及四次挥手: MSL 是Maximum Segment Lifetime英文的缩写,中文可以译为“报文最大生存时间”,他是任何报文在网络上存在的最长时间,超过这个时间报文将被丢弃。因为tcp报文 (segment)是ip数据报(datagram)的数据部分,具体称谓请参见《数据在 ...
分类:
其他好文 时间:
2018-09-25 15:24:29
阅读次数:
219
Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and cal ...
分类:
编程语言 时间:
2018-09-25 14:07:11
阅读次数:
186
题目大意:给你一个序列,你可以翻转任意一段子序列一次,求最长不下降子序列长度 tips:子序列可以不连续,但不能破坏在原序列中的顺序 观察数据范围,n<=50,很小,考虑dfs *dfs来跑区间dp可以巧妙的解决区间两端元素的置换问题 记忆化搜索,f[i][j][l][r] 代表对于区间[i,j], ...
分类:
其他好文 时间:
2018-09-24 22:18:57
阅读次数:
206
一、首先是<meta>标签 这段代码的几个参数解释: width = device-width:宽度等于当前设备的宽度 initial-scale:初始的缩放比例(默认设置为1.0) minimum-scale:允许用户缩放到的最小比例(默认设置为1.0) maximum-scale:允许用户缩放到 ...
分类:
Web程序 时间:
2018-09-24 18:31:25
阅读次数:
194
Objective: Given ‘N’ windows where each window contains certain number of tickets at each window. Price of a ticket is equal to number of tickets rema ...
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: DP的做法,递推公式: ...
分类:
其他好文 时间:
2018-09-23 18:08:16
阅读次数:
203
In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Each subarray will be of size k, and we want to max ...
分类:
移动开发 时间:
2018-09-23 16:37:21
阅读次数:
267
题目6: 2008年2月有多少天?那年有多少天? (视频下载) (全部书籍) import java.util.*;public class Test { public static void main(String[] args) { Date date; Calendar time=Calend ...
分类:
其他好文 时间:
2018-09-23 16:34:57
阅读次数:
190
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. 1. use an arr ...
分类:
其他好文 时间:
2018-09-23 15:06:24
阅读次数:
122