---
# System prepended metadata

title: 13. Roman to Integer

---

# 13. Roman to Integer

[leetcode Link](https://leetcode.com/problems/roman-to-integer/)

[如何貼上解答](https://hackmd.io/s/how-to-use-code-blocks-tw)
```java=
// 我是範例  
public boolean isPalindrome(int x) {
    
    if(x < 0){
        return false;
    }
    int orgX = x;
    long result = 0;
    while(x!=0){
        result = result*10 + x%10;
        x = x/10;
    }

    if(result != orgX){
        return false;
    }

    return true;
}
```
> [name=瑜庭]


```java=
public int romanToInt(String s) {
        
}
```
> [name=你的名字]

```java=
public int romanToInt(String s) {
        
}
```
> [name=你的名字]

```java=
public int romanToInt(String s) {
        
}
```
> [name=你的名字]

# 14. Longest Common Prefix
[Link](https://leetcode.com/problems/longest-common-prefix/)
```java=
public String longestCommonPrefix(String[] strs) {
        
}
```
> [name=YourName]