【题目】
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
【分析】
I = 1;
V = 5;
X = 10;
L = 50;
C = 100;
D = 500;
M = 1000;
还有一些特...
分类:
其他好文 时间:
2015-01-21 18:12:13
阅读次数:
154
题目链接:点击打开链接
题目信息:
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 ...
分类:
其他好文 时间:
2015-01-20 22:13:22
阅读次数:
210
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999. 1 public class Solution { 2 public Stri...
分类:
其他好文 时间:
2015-01-19 20:53:28
阅读次数:
146
A tick is an event that occurs for everyNlow-level tickable statements executed by the parser within thedeclareblock. The value forNis specified using...
分类:
Web程序 时间:
2015-01-19 18:34:25
阅读次数:
225
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
题意:将阿拉伯数字转换为罗马数字表示
思路:首先了解罗马数字的表示,然后就是从大到小找符合的数字了
class Solution {
public:
strin...
分类:
其他好文 时间:
2015-01-19 15:52:35
阅读次数:
137
题目:
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,?5,4],
the contiguous subarray [4,?...
分类:
其他好文 时间:
2015-01-18 11:53:17
阅读次数:
103
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-01-15 23:20:18
阅读次数:
194
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 largest...
分类:
其他好文 时间:
2015-01-15 22:12:45
阅读次数:
169
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42713315
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to...
分类:
其他好文 时间:
2015-01-15 20:27:53
阅读次数:
226
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
题目的意思是将给定的罗马数字转换为一个整数
什么是罗马数字:
I, II, III, IV, V, VI, VII, VIII, IX, X....
分类:
其他好文 时间:
2015-01-15 20:19:12
阅读次数:
205