traceroute我们可以知道信息从你的计算机到互联网另一端的主机是走的什么路径。当然每次数据包由某一同样的出发点(source)到达某一同样的目的地(destination)走的路径可能会不一样,但基本上来说大部分时候所走的路由是相同的。 常见命令参数Options: -4 Use IPv4 -... ...
分类:
系统相关 时间:
2018-07-14 14:56:19
阅读次数:
239
RMQ是英文Range Minimum/Maximum Query的缩写,是询问某个区间内的最值,这里讲一种解法:ST算法 ST算法通常用在要多次(10^6级别)询问区间最值的问题中,相比于线段树,它实现更简单,效率更高,但不支持修改,且一般只能维护最值。 ST算法实际上是动规,原理如下: 预处理: ...
分类:
其他好文 时间:
2018-07-13 19:06:55
阅读次数:
148
//必须先加载图片,然后执行 hWndControl.setGUICompRangeX( new int[]{ XTrackBar.Minimum, XTrackBar.Maximum}, ... ...
分类:
其他好文 时间:
2018-07-11 12:34:54
阅读次数:
350
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2018-07-10 00:37:31
阅读次数:
149
原题网址:https://www.lintcode.com/problem/longest-increasing-subsequence/description 描述 给定一个整数序列,找到最长上升子序列(LIS),返回LIS的长度。 描述 描述 给定一个整数序列,找到最长上升子序列(LIS),返回 ...
分类:
其他好文 时间:
2018-07-09 17:52:55
阅读次数:
177
题目 解析 C++版 C++ class Subsequence { public: int shortestSubsequence(vector A, int n) { // write code here int start=0; int end=n 1; //最右边比max值小的数的下标 // ...
分类:
编程语言 时间:
2018-07-09 01:08:04
阅读次数:
148
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: E ...
分类:
编程语言 时间:
2018-07-08 22:12:36
阅读次数:
210
D - FatMouse and Cheese FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is l ...
分类:
其他好文 时间:
2018-07-07 22:40:01
阅读次数:
232
Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Note: There may be more than one LIS combination, it ...
分类:
其他好文 时间:
2018-07-07 22:19:36
阅读次数:
133
如果支持手机端,在head标签设置:<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1"> 方法1: <script type='text/javascript' src='https ...
分类:
其他好文 时间:
2018-07-06 17:57:21
阅读次数:
740