摘要: public String convert(String s, int numRows) { if (s.isEmpty() || s == null || numRows >= s.length() || numRows == 1) { return s; } int n = s.length() 阅读全文
posted @ 2023-02-15 16:53 jrjewljs 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 暴力解法 public String longestPalindrome(String s) { int max = 0; int start = 0; int n = s.length(); for (int i = 0; i < n; i++) { for (int j = i; j < n; 阅读全文
posted @ 2023-02-15 16:52 jrjewljs 阅读(15) 评论(0) 推荐(0) 编辑