下面是手机网页的一些认识: 一、 网页手机wap2.0网页的head里加入下面这条元标签,在iPhone的浏览器中页面将以原始大小显示,并不允许缩放。width-viewport的宽度height-viewport的高度initial-scale-初始的缩放比例minimum-scale-允许用户缩...
分类:
移动开发 时间:
2015-05-05 12:00:56
阅读次数:
172
RMQ with Shifts时间限制:1000ms | 内存限制:65535KB难度:3描述In the traditional RMQ (Range Minimum Query) problem, we have a static array A. Then for each query (L,...
分类:
其他好文 时间:
2015-05-03 22:00:04
阅读次数:
104
RMQ(Range Minimum/Maximum Query),即区间最值查询,是指这样一个问题:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j#include #include #include using namespace std;const int N = 10e6+1.....
分类:
编程语言 时间:
2015-05-03 00:45:00
阅读次数:
183
Title:Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have t...
分类:
其他好文 时间:
2015-05-02 15:04:19
阅读次数:
118
12. binary search Trees The search tree data structure supports many dynamic-set operations,including search ,minimum,maximum,predecessor,successor ,i...
分类:
其他好文 时间:
2015-05-01 23:45:21
阅读次数:
263
有两个向量v1=(x1,x2,x3,,,xn)和v2=( y1,y2,,,,yn),允许任意交换v1和v2各自的分量的顺序。请计算v1和v2的内积x1y1+,,,,+xnyn的最小值。
限制条件
Small
1
Large
100
-100000
样例1:
输入:
n=3
V1=(1,3,-5)
v2=(-2,4,1)
输出:-25
分析:首先把数组排序,用升序的数组乘以...
分类:
其他好文 时间:
2015-04-30 12:34:02
阅读次数:
148
problem:
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given...
分类:
其他好文 时间:
2015-04-29 09:56:50
阅读次数:
116
求二叉树的最小深度。/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) ...
分类:
其他好文 时间:
2015-04-29 01:57:40
阅读次数:
114
BFS注意字典序的问题。WA了好多发。#include#include#include#include#includeusing namespace std;const int maxn = 70;int n, cost[maxn][maxn],bb[maxn], ji[maxn];struct a...
分类:
其他好文 时间:
2015-04-29 00:13:13
阅读次数:
133
problem:
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
...
分类:
其他好文 时间:
2015-04-27 09:43:11
阅读次数:
136