摘要:
class Solution { public ListNode reverseList(ListNode head) { ListNode pre=null; ListNode cur=head; ListNode temp=null; while(cur!=null) { temp=cur.ne 阅读全文
摘要:
class Solution { public boolean repeatedSubstringPattern(String s) { if (s.equals("")) return false; int len = s.length(); s = " " + s; char[] chars = 阅读全文
摘要:
class Solution { public String reverseWords(String s) { StringBuilder sb=removeSpace(s); reverse(sb,0,sb.length()-1); reverseEach(sb); return sb.toStr 阅读全文