Skip to content

Commit 3be15c5

Browse files
authored
Refactor readme for integer to Roman conversion
Removed redundant table format for Roman numeral values and simplified the presentation.
1 parent 9e1ff1a commit 3be15c5

File tree

1 file changed

+10
-32
lines changed
  • src/main/java/g0001_0100/s0012_integer_to_roman

1 file changed

+10
-32
lines changed

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

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,15 @@ Medium
44

55
Seven different symbols represent Roman numerals with the following values:
66

7-
Symbol
8-
9-
Value
10-
11-
I
12-
13-
1
14-
15-
V
16-
17-
5
18-
19-
X
20-
21-
10
22-
23-
L
24-
25-
50
26-
27-
C
28-
29-
100
30-
31-
D
32-
33-
500
34-
35-
M
36-
37-
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 |
3816

3917
Roman numerals are formed by appending the conversions of decimal place values from highest to lowest. Converting a decimal place value into a Roman numeral has the following rules:
4018

@@ -76,4 +54,4 @@ Given an integer, convert it to a Roman numeral.
7654

7755
**Constraints:**
7856

79-
* `1 <= num <= 3999`
57+
* `1 <= num <= 3999`

0 commit comments

Comments
 (0)