码迷,mamicode.com
首页 >  
搜索关键字:maximum repetition s    ( 4177个结果
【原创】Sliding Window Maximum 解法分析
这道题是lintcode上的一道题,当然leetcode上同样有。本题需要寻找O(N)复杂度的算法。解体思路比较有特点,所以容易想到参考 最小栈 的解题办法。但是最小栈用栈维护最小值很直观,这道题是队列,用什么数据结构好呢?也许看完暴力解会有点启发。但是思路还是一样的,最大的要在最前面(直接获取结果...
分类:Windows程序   时间:2015-10-20 16:33:48    阅读次数:205
移动web设计稿尺寸,关于移动web尺寸的那点事
我自己的做稿子的时候,一开始就有一个习惯,先放上这段代码未隐藏URL栏已隐藏URL栏1:1显示(initial-scale=1.0, maximum-scale=1.0),禁止放大缩小(user-scalable=no)隐藏IOS系统浏览器的URL栏目与状态栏目(minimal-ui,只有IOS7版...
分类:移动开发   时间:2015-10-20 11:53:11    阅读次数:221
LintCode "Maximum Subarray Difference"
A variantion to "largest\smallest consecutive subarray". Idea is, at position i, the current max diff is max(max_left[i] - min_right[i+1], max_right[i...
分类:其他好文   时间:2015-10-18 14:01:57    阅读次数:174
leetcode笔记:Maximum Depth of Binary Tree
这道题和Minimum Depth of Binary Tree一题相似,这个是求最大深度的,就是对二叉树进行递归,然后将子树的最大深度进行返回,最终得到这个树的最大深度。...
分类:其他好文   时间:2015-10-17 23:48:57    阅读次数:345
LeetCode104 Maximum Depth of Binary Tree
LeetCode 104 Maximum Depth of Binary Treehttps://leetcode.com/problems/maximum-depth-of-binary-tree//** * Definition for a binary tree node. * struct ...
分类:其他好文   时间:2015-10-17 10:40:07    阅读次数:131
移动web开发经验总结(转)
1.width可是宽度,initial-scale初始化缩放比例,maximum-scale允许用户缩 放的最大比例,minimum-scale允许用户缩放的最小比例,user-scalable是否允许用户缩放。2.-webkit-tap-highlight-color:rgba(255,255,2...
分类:移动开发   时间:2015-10-16 10:11:13    阅读次数:266
移动web开发经验总结(1)
1.width可是宽度,initial-scale初始化缩放比例,maximum-scale允许用户缩放的最大比例,minimum-scale允许用户缩放的最小比例,user-scalable是否允许用户缩放。2.-webkit-tap-highlight-color:rgba(255,255,25...
分类:移动开发   时间:2015-10-15 16:04:35    阅读次数:247
Swipebox
下载地址:http://brutaldesign.github.io/swipebox/<!DOCTYPEhtml> <htmllang="en"> <head> <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"> <metaname="viewport"content="width=device-width,initial-scale=1,maximum-scale=1..
分类:其他好文   时间:2015-10-15 10:11:43    阅读次数:168
移动web开发经验总结(1)
1.width可是宽度,initial-scale初始化缩放比例,maximum-scale允许用户缩放的最大比例,minimum-scale允许用户缩放的最小比例,user-scalable是否允许用户缩放。2.-webkit-tap-highlight-color:rgba(255,255,25...
分类:移动开发   时间:2015-10-14 21:32:06    阅读次数:241
122. Best Time to Buy and Sell Stock II (Array)
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2015-10-14 19:55:53    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!