原题地址:https://oj.leetcode.com/problems/minimum-window-substring/题意:Given a string S and a string T, find the minimum window in S which will contain all...
分类:
编程语言 时间:
2014-06-15 22:10:42
阅读次数:
1109
排个序,求前k个元素和即可 int minimum(int K, vector danceCost) { sort(danceCost.begin(),danceCost.end()); return accumulate(danceCost.begin()...
分类:
其他好文 时间:
2014-06-15 21:53:14
阅读次数:
201
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.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-06-13 20:36:56
阅读次数:
280
求一个排列的下一个排列。1,2,3→1,3,23,2,1→1,2,31,1,5→1,5,1#include
#include #include using namespace std; class Solution{public: void
nextPermutation(vector &nu...
分类:
其他好文 时间:
2014-06-13 16:41:56
阅读次数:
173
主要思想:假设数字里的值都为正循环判断数组
如果与前面的数字相同则变为-1然后记录-1的个数算出重复值然后重新new一个减去重复值长度的新数组和原数组判断 不为-1的全部复制进来即可代码如下: 1
package Del_Same_Num; 2 3 public class Del_Same_Nu....
分类:
编程语言 时间:
2014-06-13 15:45:29
阅读次数:
218
select msi.segment1 物料编码, msi.DESCRIPTION 物料描述,
PER.LAST_NAME 采购员, MSI.FULL_LEAD_TIME 提前期, MSI.FIXED_ORDER_QUANTITY 固定订单数量,
MSI.MINIMUM_ORDER_QUA...
分类:
数据库 时间:
2014-06-12 14:34:50
阅读次数:
299
1、写法一: 1 #include 2 #include 3 #include 4 5 using
namespace std; 6 7 int numv[50005 2 #include 3 #include 4 5 using namespace std;
6 7 int nu...
分类:
其他好文 时间:
2014-06-12 11:36:43
阅读次数:
316
在head标签中加入以上meta声明。具体属性可以谷歌/百度。
我查了下viewport,有几个属性:width - viewport的宽度 height - viewport的高度initial-scale -
初始的缩放比例minimum-scale - 允许用户缩放到的最小比例maximum-...
分类:
移动开发 时间:
2014-06-12 10:24:54
阅读次数:
430