Skip to content

Commit b29f506

Browse files
author
Li Li
committed
add 13 to notes
1 parent 0ba9cdc commit b29f506

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
I will use this repository to make notes for leetcode solutions and classify the problems by different topics.
44

55
## Solved Problem List
6-
Total solved: 77
6+
Total solved: 78
77

88
### top-interview-questions
99

1010
ID | Difficulty | Tags | Solution | Similar Problem
1111
-- | ---------- | ---- | -------- | ---------------
12+
13 | Easy | String, Math | [Roman to Integer](https://github.com/kflili/LeetcodeCShaprDotNetCore/blob/master/top-interview-questions/13.%20Roman%20to%20Integer.cs)
1213
14 | Easy | String | [Longest Common Prefix](https://github.com/kflili/LeetcodeCShaprDotNetCore/blob/master/top-interview-questions/14.%20Longest%20Common%20Prefix.cs)
1314
38 | Easy | String | [Count and Say](https://github.com/kflili/LeetcodeCShaprDotNetCore/blob/master/top-interview-questions/38.%20Count%20and%20Say.cs)
1415
53 | Easy | Dynamic Programming, Divide and Conquer | [Maximum Subarray](https://github.com/kflili/LeetcodeCShaprDotNetCore/blob/master/top-interview-questions/53.%20Maximum%20Subarray.cs)
@@ -176,7 +177,19 @@ ID | Difficulty | Tags | Solution
176177
438 | Easy | Hash Table (Dictionary), Two pointer, Sub string, Sliding window | [Find All Anagrams in a String](https://github.com/kflili/LeetcodeCShaprDotNetCore/blob/master/Algorithms%20Basics/Chapter%201.%20Array_String/438.%20Find%20All%20Anagrams%20in%20a%20String.cs)
177178
-- | Easy | Sliding window for sub string | [SubString Template](https://github.com/kflili/LeetcodeCShaprDotNetCore/blob/master/Algorithms%20Basics/SubString-topic/Sliding%20Window%20Template.cs)
178179

180+
###
181+
13. Roman to Integer
179182

183+
#### Common knowledge
184+
Symbol | I | V | X | L | C | D | M
185+
Value | 1 | 5 | 10 | 50 | 100 | 500 | 1000
186+
187+
**I** placed before **V** or **X** indicates one less, so **IV** is 4 (5 - 1) and **IX** is 9 (10 - 9)
188+
189+
**X** placed before **L** or **C** indicates ten less, so XL is 40 (50 - 10) and **XC** is 90 (100 - 10)
190+
191+
**C** placed before **D** or **M** indicates a hundred less, so four hundred is **CD** (a hundred less than five
192+
hundred) and nine hundred is **CM** (a hundred less than a thousand)
180193

181194
<br />
182195
<br />

0 commit comments

Comments
 (0)