1.遇到这么个题目 Write a function, which takes a non negative integer (seconds) as input and returns the time in a human readable format (HH:MM:SS) HH = hour ...
分类:
其他好文 时间:
2020-01-16 23:54:38
阅读次数:
159
题目 Given a sequence of K integers {$N_{1},N_{2},...N_{k}$}. A continuous subsequence is defined to be {$N_{i},N_{i+1},...N_{j}$} where $1≤i≤j≤K$. The ...
分类:
其他好文 时间:
2020-01-16 17:22:49
阅读次数:
63
TCP 协议是 更靠近应用层,因此在应用程序中具有更强可操作性,一些重要 socket 选项都和 TCP 协议相关。 TCP 头部信息:TCP 头部信息出现在每个 TCP 报文段中,用于指定通信的源端端口号、目的端端口号、管理 TCP 连接、控制两个方向的数据流。 TCP 状态转移信息:TCP 连接 ...
分类:
其他好文 时间:
2020-01-14 20:42:19
阅读次数:
123
"剖析面试最常见问题之Java集合框架" "说说List,Set,Map三者的区别?" "Arraylist 与 LinkedList 区别?" "补充内容:RandomAccess接口" "补充内容:双向链表和双向循环链表" "ArrayList 与 Vector 区别呢?为什么要用Arrayli ...
分类:
编程语言 时间:
2020-01-14 12:52:29
阅读次数:
84
今天学弟在群里直播讲课,讲了RMQ,以前摸鱼太多这个题目并没看出来是啥,然后就去凑了个热闹。 RMQ (Range Minimum/Maximum Query)问题是指:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<=n),返回数列A中下标在i,j里的最小(大)值,也就是说,RMQ ...
分类:
其他好文 时间:
2020-01-14 10:15:01
阅读次数:
100
1 <head> 2 <title>Powered By Leisureeen</title> 3 <!-- <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scal ...
分类:
Web程序 时间:
2020-01-13 23:50:39
阅读次数:
124
//测试主方法 public static void main(String[] args) { Date currentTime = df.parse("2004-03-26 13:31:40"); //当前系统时间 Date firstTime = df.parse("2004-01-02 11... ...
分类:
编程语言 时间:
2020-01-13 20:15:10
阅读次数:
379
414 第三大的数 给定一个非空数组,返回此数组中第三大的数。如果不存在,则返回数组中最大的数。要求算法时间复杂度必须是O(n)。 示例 1: 示例 2: 示例 3: 来源:力扣(LeetCode) 链接:https://leetcode cn.com/problems/third maximum ...
分类:
其他好文 时间:
2020-01-13 20:00:46
阅读次数:
93
Given an array A of integers and integer K, return the maximum S such that there exists i < j with A[i] + A[j] = S and S < K. If no i, j exist satisfy ...
分类:
其他好文 时间:
2020-01-12 11:53:41
阅读次数:
79
https://learnku.com/docs/go-blog/qihoo/6532 Use a Task Pool, a mechanism with a group of long-lived goroutines consuming global task or message queues ...
分类:
Web程序 时间:
2020-01-11 15:09:02
阅读次数:
105