[leetcode]Find Minimum in Rotated Sorted Array...
分类:
其他好文 时间:
2014-10-17 12:02:06
阅读次数:
124
题目描述:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).Find the minimum element....
分类:
其他好文 时间:
2014-10-17 01:12:13
阅读次数:
279
Add Date 2014-10-15Find Minimum in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7mi...
分类:
编程语言 时间:
2014-10-17 00:31:13
阅读次数:
233
[leetcode]Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)...
分类:
其他好文 时间:
2014-10-16 13:02:12
阅读次数:
183
很眼熟。。。就是一个二分。。。class Solution {public: int findMin(vector &num) { int size = num.size() - 1; int l = 0; int r = size; w...
分类:
其他好文 时间:
2014-10-16 12:35:22
阅读次数:
180
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).Find the minimum element.You m...
分类:
其他好文 时间:
2014-10-16 12:24:52
阅读次数:
225
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-10-15 15:13:00
阅读次数:
200
题目:poj 2516 Minimum Cost
题意:有 n 个商店,k种物品和 m 个供货商,让你求进满足商店需求的货物的最小花费?
有必要说一下输入数据。
首先n ,k ,m
然后是一个n*m的矩阵,n个商店对每种货物的需求,表示第 i 个商店需要第 j 种货物 x个
然后是m * k 的矩阵,m个供货商可以供k种货物的数量,表示第 i 个供货商 提供第 j 中货物 x...
分类:
其他好文 时间:
2014-10-14 13:53:38
阅读次数:
130
Marks Distribution
Time limit: 3.000 seconds
In an examination one student appeared in N subjects and has got total T marks. He has passed in all the Nsubjects where minimum mark for passing
i...
分类:
其他好文 时间:
2014-10-13 21:55:37
阅读次数:
259
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
You have the following 3 operations permitted on a word:...
分类:
其他好文 时间:
2014-10-13 20:08:07
阅读次数:
188