viewprot屏幕尺寸,专为移动页面设计参数width,height宽高,或者device-width、device-height设备的宽高initial-scale初始缩放比例。如果设2.0则会放大两倍maximum-scale允许用户缩放最大比例minumum-scale允许用户缩放最小比例u...
分类:
Web程序 时间:
2015-11-09 01:28:06
阅读次数:
200
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale...
分类:
编程语言 时间:
2015-11-06 14:56:44
阅读次数:
259
原题链接在这里:https://leetcode.com/problems/sliding-window-maximum/[1,3,-1,-3,5,3,6,7], andk= 3.用一个deque, 里面存index. 从尾部添加index前先检查deque的尾部index对应的元素nums[ls....
原题链接在这里:https://leetcode.com/problems/maximum-gap/桶排序(bucket sort)假设有N个元素A到B。那么最大差值不会大于ceiling[(B - A) / (N - 1)]令bucket(桶)的大小len =ceiling[(B - A) / (...
分类:
其他好文 时间:
2015-11-05 06:30:50
阅读次数:
247
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:
其他好文 时间:
2015-11-04 09:59:24
阅读次数:
132
QuestionGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique lo...
分类:
其他好文 时间:
2015-11-04 01:56:54
阅读次数:
182
题目: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 complet...
分类:
其他好文 时间:
2015-11-03 13:48:38
阅读次数:
191
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-11-02 00:00:09
阅读次数:
277
Maximum sum总Time Limit:1000msMemory Limit:65536kBDescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a function d(A) as below: ...
分类:
其他好文 时间:
2015-11-01 20:54:46
阅读次数:
209
progressBar1.Maximum = 100;//设置最大长度值 progressBar1.Value = 0;//设置当前值 progressBar1.Step = 5;//设置没次增长多少for (int i = 0; i < 10; i++)//循环{ System.T...