码迷,mamicode.com
首页 >  
搜索关键字:minimum    ( 3256个结果
转载:手机网页制作的认识(有关meta标签)
下面是手机网页的一些认识: 一、 网页手机wap2.0网页的head里加入下面这条元标签,在iPhone的浏览器中页面将以原始大小显示,并不允许缩放。width-viewport的宽度height-viewport的高度initial-scale-初始的缩放比例minimum-scale-允许用户缩...
分类:移动开发   时间:2015-05-05 12:00:56    阅读次数:172
nyoj 568——RMQ with Shifts——————【线段树单点更新、区间求最值】
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-ST算法
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
LeetCode: Edit Distance
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
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
Minimum Scalar product
有两个向量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
leetcode || 132、Palindrome Partitioning II
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
LeetCode - Minimum Depth of Binary Tree
求二叉树的最小深度。/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) ...
分类:其他好文   时间:2015-04-29 01:57:40    阅读次数:114
hdu 1385 Minimum Transport Cost
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
leetcode || 120、Triangle
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!