12. Integer to Roman:https://leetcode.com/problems/integer-to-roman/
13. Roman to Integer:https://leetcode.com/problems/roman-to-integer/
两道题互逆,常规做法。
小tip:用数组、字典,按大小顺序存储罗马字符能提高效率。
12. Integer to Roman:https://leetcode.com/problems/integer-to-roman/
13. Roman to Integer:https://leetcode.com/problems/roman-to-integer/
两道题互逆,常规做法。
小tip:用数组、字典,按大小顺序存储罗马字符能提高效率。