摘要:
题目大意:求多个字符串的最长公共前缀。 public static String longestCommonPrefix(String[] strs) { if (strs.length == 0) return ""; int i = 0; a:for (; i < strs[0].length( 阅读全文
摘要:
回文的定义: 回文数是这样一个非负整数:它从左往右读和从右往左读是一样的。 public class Solution { public boolean isPalindrome(int x) { if(x<0){ return false; } long sum=0; int num =x; wh 阅读全文