码迷,mamicode.com
首页 >  
搜索关键字:within    ( 1403个结果
Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the larg...
分类:其他好文   时间:2015-02-10 15:26:37    阅读次数:160
leetcode[53]Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2015-02-10 14:50:48    阅读次数:126
leetcode[12]Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.public class Solution { public String int...
分类:其他好文   时间:2015-02-10 14:48:34    阅读次数:131
leetcode[13]Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.class Solution {public: int romanToInt(st...
分类:其他好文   时间:2015-02-10 14:39:57    阅读次数:111
leetcode[152]Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:其他好文   时间:2015-02-09 00:42:25    阅读次数:216
LeetCode 013 Roman to Integer
题目描述:Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.分析:① 输入为VII,则数字为V + I +...
分类:其他好文   时间:2015-02-07 15:50:36    阅读次数:150
LeetCode 012 Integer to Roman
题目描述:Integer to RomanGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.罗马数字的计数方法:基本字符IVXLCDM相应...
分类:其他好文   时间:2015-02-07 15:41:19    阅读次数:145
Roman to Integer
题目描述:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 这道题很简单,我就直接贴答案了。solution1:int romanTo....
分类:其他好文   时间:2015-02-06 23:10:02    阅读次数:136
Integer to Roman
题目描述:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999. 这道题我必须炫一下,因为提交一次就成功了,而且代码很赞。solution:....
分类:其他好文   时间:2015-02-06 09:26:04    阅读次数:160
[LeetCode] Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.思路:从各位向前处理,当前字符代表的数比后面一位字符代表的数大(包括等于),就加,小就减...
分类:其他好文   时间:2015-02-05 18:19:42    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!