You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/g0001_0100/s0012_integer_to_roman/readme.md
+10-32Lines changed: 10 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,37 +4,15 @@ Medium
4
4
5
5
Seven different symbols represent Roman numerals with the following values:
6
6
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 |
38
16
39
17
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:
40
18
@@ -76,4 +54,4 @@ Given an integer, convert it to a Roman numeral.
0 commit comments