码迷,mamicode.com
首页 >  
搜索关键字:罗马数字    ( 376个结果
【LeetCode】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.首先学习一下罗马数字的规则:羅馬數字共有7個,即I(1)...
分类:其他好文   时间:2015-08-15 17:54:27    阅读次数:94
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-08-13 20:11:14    阅读次数:135
LeetCode解题报告--Integer to Roman
题目:阿拉伯数字转罗马数字Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.原题链接地址:https://leetcode.com/problems/integer-to-roman/ 分析:题意将阿拉伯数字num转罗马数字 拼写...
分类:其他好文   时间:2015-08-13 20:10:49    阅读次数:129
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.分析这个题目是上一题的变形,要求将给定的罗马序列数字转换为对应的整数。 了解罗马数字与整数的对应关系: 对应举例如下: AC代码class Solution{ public...
分类:其他好文   时间:2015-08-05 22:21:48    阅读次数:157
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.分析该题目要求将给定的1~3999之间的整型数字转换为罗马数字并输出。 解这道题我们必须了解罗马字母与整数之间的对应: 对照举例如下: AC代码class Solution...
分类:其他好文   时间:2015-08-05 22:19:59    阅读次数:211
LeetCode:Roman to Integer
1、题目名称 Roman to Integer (罗马数字到阿拉伯数字的转换) 2、题目地址 https://leetcode.com/problems/roman-to-integer/ 3、题目内容 英文:Given a roman numeral, convert it to an integer. Input is g...
分类:其他好文   时间:2015-08-04 08:14:55    阅读次数:229
LeetCode:Integer to Roman
1、题目名称 Integer to Roman (阿拉伯数字到罗马数字的转换) 2、题目地址 https://leetcode.com/problems/integer-to-roman 3、题目内容 英文:Given an integer, convert it to a roman numeral. Input is g...
分类:其他好文   时间:2015-08-02 23:39:28    阅读次数:454
integer to roman leetcode c++实现
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.将整数用罗马数字表示。思路分析: {"","I","II","III","IV",".....
分类:编程语言   时间:2015-07-28 12:46:42    阅读次数:164
【LeetCode-面试算法经典-Java实现】【012-Integer to Roman(数字转罗马字符)】
【012-Integer to Roman(数字转罗马字符)】输入一个数字,将它转成一个罗马数字,输入的数字在[1, 3999]之间。   罗马数字的表示:   个位数举例: (I, 1) (II, 2) (III, 3) (IV, 4) (V, 5) (VI, 6) (VII, 7) (VIII, 8) (IX, 9)   十位数举例:(X, 10) (XI, 11) (XII, 12) (X...
分类:编程语言   时间:2015-07-20 09:21:27    阅读次数:135
【LeetCode-面试算法经典-Java实现】【013-Roman to Integer (罗马数字转成整数)】
【013-Roman to Integer (罗马数字转成整数)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a roman numeral, convert it to an integer.   Input is guaranteed to be within the range from 1 to 3999. 题目大意  给定一个罗马数字,将其转...
分类:编程语言   时间:2015-07-20 09:19:51    阅读次数:175
376条   上一页 1 ... 24 25 26 27 28 ... 38 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!