LeetCode編程練習 - Roman to Integer學習心得

題目:         Given a roman numeral, convert it to an integer.         Input is guaranteed to be within the range from 1 to 3999.     給定一個羅馬數字,將其轉換爲整數,輸入保證在從1到3999之間。 思路:    查看羅馬數字表,I對應1,V對應5,X對應10,L對應5
相關文章
相關標籤/搜索