Skip to content

Commit 42231b0

Browse files
authored
Format symbol-value table in readme
Updated the readme to format the symbol-value table for better readability.
1 parent d9c850c commit 42231b0

File tree

1 file changed

+10
-2
lines changed
  • src/main/java/g0001_0100/s0013_roman_to_integer

1 file changed

+10
-2
lines changed

src/main/java/g0001_0100/s0013_roman_to_integer/readme.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ Easy
44

55
Roman numerals are represented by seven different symbols: `I`, `V`, `X`, `L`, `C`, `D` and `M`.
66

7-
**Symbol** **Value** I 1 V 5 X 10 L 50 C 100 D 500 M 1000
7+
| Symbol | Value |
8+
|--------|-------|
9+
| I | 1 |
10+
| V | 5 |
11+
| X | 10 |
12+
| L | 50 |
13+
| C | 100 |
14+
| D | 500 |
15+
| M | 1000 |
816

917
For example, `2` is written as `II` in Roman numeral, just two ones added together. `12` is written as `XII`, which is simply `X + II`. The number `27` is written as `XXVII`, which is `XX + V + II`.
1018

@@ -44,4 +52,4 @@ Given a roman numeral, convert it to an integer.
4452

4553
* `1 <= s.length <= 15`
4654
* `s` contains only the characters `('I', 'V', 'X', 'L', 'C', 'D', 'M')`.
47-
* It is **guaranteed** that `s` is a valid roman numeral in the range `[1, 3999]`.
55+
* It is **guaranteed** that `s` is a valid roman numeral in the range `[1, 3999]`.

0 commit comments

Comments
 (0)