摘要: ``` public class Solution { public String longestCommonPrefix(String[] strs) { if(strs == null || strs.length == 0) return ""; String pre = strs[0]; i 阅读全文
posted @ 2016-05-20 16:27 zhou23 阅读(117) 评论(0) 推荐(0) 编辑
摘要: ``` 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... 阅读全文
posted @ 2016-05-20 14:35 zhou23 阅读(95) 评论(0) 推荐(0) 编辑
摘要: ``` public class Solution { public String intToRoman(int num) { String M[] = {"", "M", "MM", "MMM"}; String C[] = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", & 阅读全文
posted @ 2016-05-20 14:32 zhou23 阅读(90) 评论(0) 推荐(0) 编辑
摘要: ``` public class Solution { public int maxArea(int[] height) { int left = 0, right = height.length 1; int maxArea = 0; while (left 阅读全文
posted @ 2016-05-20 14:26 zhou23 阅读(112) 评论(0) 推荐(0) 编辑