特牛网址导航

反转链表_反写表-CSDN博客

网友收藏
文章浏览阅读64次。public static ListNode reverse(ListNode head){ if (head==null || head.next==null) return head; ListNode last=null; ListNode tmp; while(head!=null){ tmp=head.next; head..._反写表
标签:反写表