码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
Web手机自适应网页设计
这个主要就是需要改掉HTML的页面声明: 在HTML中添加一下代码即可正常显示: 解释: width: viewport的宽度, height: viewport的高度, initial-scale: 初始的缩放比例, minimum-scale: 允许用户缩放到的最小比例, maximum-sca ...
分类:移动开发   时间:2017-08-12 17:06:25    阅读次数:178
RMQ求最值
1. 概述 RMQ(Range Minimum/Maximum Query),即区间最值查询,是指这样一个问题:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<=n),返回数列A中下标在i,j之间的最小/大值。这两个问题是在实际应用中经常遇到的问题,下面介绍一下解决这两种问题的比较高 ...
分类:其他好文   时间:2017-08-12 16:09:13    阅读次数:131
[LeetCode]Best Time to Buy and Sell Stock II
题目描写叙述 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may ...
分类:其他好文   时间:2017-08-12 15:29:54    阅读次数:132
325 Maximum Size Subarray Sum Equals k
Like the other subarray sum problems Lintcode: Subarray Sum closest, 560. Subarray Sum Equals K, 523. Continuous Subarray Sum Use a HashMap to keep tr ...
分类:其他好文   时间:2017-08-12 13:58:43    阅读次数:150
常见移动web注意点
欢迎补充。 - 视口 ``` <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> ``` - 默认 ...
分类:移动开发   时间:2017-08-12 13:27:21    阅读次数:178
POJ - 3693 Maximum repetition substring 后缀数组+RMQ
http://poj.org/problem?id=3693 整体思路就是枚举长度L,看长度为L的字符串在s中连续出现了几次。 既然长度为L的串是重复出现的,那么s[0]…s[L]…s[2*L]…中相邻的两个一定出现在重复的L串中。(并不一定在首尾位置,也可能出现在中间)。 那么我们求i*L和(i+ ...
分类:编程语言   时间:2017-08-11 19:31:49    阅读次数:236
Spring Boot 多数据源配置
下面一个Java类是已经写好的根据配置文件动态创建多dataSource的代码,其原理也很简单,就是读取配置文件,根据配置文件中配置的数据源数量,动态创建dataSource并注册到Spring中。 代码如下: 将该Java文件直接添加到项目中便可,无其他任何代码耦合,就是单纯一个类。 再来看一下在 ...
分类:编程语言   时间:2017-08-11 16:03:33    阅读次数:307
[Array]628. Maximum Product of Three Numbers
Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Example 2: Note: 思路:给出一个数组找出里面三个元素乘积的最大 ...
分类:其他好文   时间:2017-08-11 15:56:40    阅读次数:143
MySQL TEXT数据类型的最大长度
http://blog.sina.com.cn/s/blog_71f8aa010100vusp.html MySQL多Text字段报8126错误(解决过程) Row size too large. The maximum row size for the used table type, not c ...
分类:数据库   时间:2017-08-11 10:49:23    阅读次数:396
LeetCode - 654. Maximum Binary Tree
Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: Construct the maximum tree by the given array a ...
分类:其他好文   时间:2017-08-10 13:40:47    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!