码迷,mamicode.com
首页 >  
搜索关键字:minimum    ( 3256个结果
meta中的viewport指令
网页手机wap2.0网页的head里加入下面这条元标签,在iPhone的浏览器中页面将以原始大小显示,并不允许缩放。 width - viewport的宽度 height - viewport的高度 initial-scale - 初始的缩放比例minimum-scale - 允许用户缩放到的最小....
分类:其他好文   时间:2014-09-09 15:19:28    阅读次数:230
hdu 4731 Minimum palindrome(构造)
题目链接:hdu 4731 Minimum palindrome 题目大意:给定n和m,m表示m种字符。求一个长度为n字典序最小的字符串,满足存在的回文子串长度尽量短。 解题思路:构造。 m = 1:那么不管n为多少,肯定都用a构造m > 2: 用abcabc...构造出来的串回文子串长度最多为1m = 2:对于n #include #include #include u...
分类:其他好文   时间:2014-09-09 13:25:08    阅读次数:260
[LeetCode] Minimum Path Sum
public class Solution { public int minPathSum(int[][] grid) { int [][] result = new int[grid.length][grid[0].length]; result[...
分类:其他好文   时间:2014-09-07 23:38:45    阅读次数:231
Minimum Path Sum <leetcode>
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:其他好文   时间:2014-09-07 11:00:24    阅读次数:213
NASM Syntax
NASM has a simplified syntax designed to let the user code with minimum overhead. In its simplest form, a NASM program needs nothing more than the ass...
分类:其他好文   时间:2014-09-06 22:31:13    阅读次数:379
Edit Distance
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:其他好文   时间:2014-09-06 21:18:33    阅读次数:263
hdu1385 Minimum Transport Cost 字典序最小的最短路径 Floyd
求最短路的算法最有名的是Dijkstra。所以一般拿到题目第一反应就是使用Dijkstra算法。但是此题要求的好几对起点和终点的最短路径。所以用Floyd是最好的选择。因为其他三种最短路的算法都是单源的。 输出字典序最小的路径则需要修改模版。#include#include#include#i...
分类:其他好文   时间:2014-09-06 21:14:03    阅读次数:331
Triangle --- 至顶向下求最小值
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 fol...
分类:其他好文   时间:2014-09-06 17:20:33    阅读次数:229
Leetcode: Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:其他好文   时间:2014-09-06 05:27:22    阅读次数:223
LeetCode: Minimum Window Substring
LeetCode: Minimum Window SubstringGiven a string S and a string T, find the minimum window in S which will contain all the characters in T in complexi...
分类:Windows程序   时间:2014-09-04 22:13:50    阅读次数:292
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!