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
题目:
Given an unsorted array of integers, find the length of longest increasing subsequence.
For example, Given [10, 9, 2, 5, 3, 7, 101, 18],
The longest increasing subsequence is [2, 3, 7, 101], ...
分类:
其他好文 时间:
2015-11-05 18:55:22
阅读次数:
243
原题链接在这里: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
问题描述:给出一个序列a1,a2,a3,a4,a5,a6,a7….an,求它的一个子序列(设为s1,s2,…sn),使得这个子序列满足这样的性质,s1= 0; i--){ 8: int maxTemp = flag[i]; 9: for (int j = i+1; j flag[j] + 1 ...
分类:
编程语言 时间:
2015-11-04 22:43:01
阅读次数:
323
原题链接在这里:https://leetcode.com/problems/longest-increasing-subsequence/是一道DP问题,参考这篇帖子:http://blog.csdn.net/left_la/article/details/119510855,3,4,8,6,7根据...
分类:
其他好文 时间:
2015-11-04 14:24:07
阅读次数:
228
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