本文档以redhat6.2版本为例安装(其他系统版本需自行下载相关文件)
分类:
其他好文 时间:
2018-11-16 18:20:51
阅读次数:
205
problem MaximumSubarray 参考 1. https://leetcode.com/problems/maximum-subarray/description/ 完 ...
分类:
其他好文 时间:
2018-11-16 15:18:52
阅读次数:
227
https://leetcode.com/problems/sliding-window-maximum/ Given an array nums, there is a sliding window of size k which is moving from the very left of t ...
#-*-coding:utf-8-*-"""SpyderEditorThisisatemporaryscriptfile."""importmxnetasmximportnumpyasnpa=mx.nd.ones((2,3))b=mx.nd.ones((2,3))c=a+bd=-ce=mx.nd.sin(c**2).Tf=mx.nd.maximum(a,c)f.asnumpy()printe,f,
分类:
Web程序 时间:
2018-11-15 00:17:58
阅读次数:
181
ST算法用于解决RMQ(Range Minimum/Maximum Query)的问题。解决RMQ有三种实现的方法: 1.基于分治的树状数组 2.基于分治的线段树 3.动态规划下的ST表算法。点这里查看它们的复杂度和区别。ST算法无法修改、O(1)的查询、O(nlogn)的预处理; 分析数组a的区间 ...
分类:
编程语言 时间:
2018-11-14 22:40:36
阅读次数:
535
1,安装 flexible和 postcss-px2rem(命令行安装) 简要介绍这两个包的用途: flexible会为页面根据屏幕自动添加<meta name='viewport' >标签,动态控制initial-scale,maximum-scale,minimum-scale等属性的值。 例如 ...
分类:
移动开发 时间:
2018-11-13 18:08:03
阅读次数:
2391
题目链接:https://codeforc.es/problemset/problem/483/B You have two friends. You want to present each of them several positive integers. You want to presen ...
分类:
其他好文 时间:
2018-11-13 14:25:03
阅读次数:
161
就是最基本的DP,先用了最基本的做法。 14ms,19.5%. 稍作改进,不用自带的Math.max。 8ms,99.92%。 ...
分类:
其他好文 时间:
2018-11-13 11:36:53
阅读次数:
141
Robberies The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because the ...
分类:
其他好文 时间:
2018-11-12 00:22:10
阅读次数:
188
一、题目 1、审题 2、分析 给出一个整形数组,一个窗口大小 k,此窗口每次包含 k 个连续元素,依次向后移动,将每次窗口中的最大元素进行记录。 二、解答 1、思路 方法一、 采用双端队列 Deque 存储每次窗口中最大元素的下标 i,且队列中存储的下标是依次增大的。 ①、循环判断队列中元素值 < ...