jianglilili / jianglilili/leetcode-

Roman to Integer(罗马数字转整数)

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

[Roman to Integer](https://leetcode-cn.com/problems/roman-to-integer/submissions/)

```
//time:2019/12/13
class Solution
{
public int romanToInt(String s) {
Map map=new HashMap();
map.put('I',1);
map.put('V',5);
map.put('X',10);
map.put('L',50);
map.put('C',100);
map.put('D',500);
map.put('M',1000);
int result=0;
for(int i=0;i

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.