摘要:
1 public class Solution { 2 /** 3 * @param s A string 4 * @return Whether the string is a valid palindrome 5 */ 6 public static boolean isPalindrome(String s) { 7 ... 阅读全文
摘要:
1 public class Solution { 2 /** 3 * @param s : A string 4 * @return : A string 5 */ 6 public static String reverseWords(String s){ 7 if (s == null || s.isEmpty()... 阅读全文
摘要:
1 public class Solution { 2 /** 3 * @param str: an array of char 4 * @param offset: an integer 5 * @return: nothing 6 */ 7 public static char[] rotateString(char[] ... 阅读全文
摘要:
1 public class Solution { 2 /** 3 * @param A, B: Two string. 4 * @return: the length of the longest common substring. 5 */ 6 public int longestCommonSubstring(String aA, ... 阅读全文