摘要:
``` public class Solution { public String longestCommonPrefix(String[] strs) { if(strs == null || strs.length == 0) return ""; String pre = strs[0]; i 阅读全文
摘要:
``` public class Solution { public int romanToInt(String s) { if(s == null || s.length() == 0) return 0; int len = s.length(); HashMap map = new HashMap(); map.put... 阅读全文
摘要:
```
public class Solution { public String intToRoman(int num) { String M[] = {"", "M", "MM", "MMM"}; String C[] = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", & 阅读全文
摘要:
``` public class Solution { public int maxArea(int[] height) { int left = 0, right = height.length 1; int maxArea = 0; while (left 阅读全文