摘要:
/** * 单链表反转 */ public static ListNode reverse(ListNode head){ ListNode pre = null; //当前节点的前一个节点 ListNode next = null;//当前节点的下一个节点 while(head != null... 阅读全文
posted @ 2019-03-21 10:32
提拉没有米苏
阅读(206)
评论(0)
推荐(0)
摘要:
public class ListNode { public int value; public ListNode next; public ListNode(int value) { this.value = value; } } /** * 头结点插入 */ public static void hea... 阅读全文
posted @ 2019-03-21 10:26
提拉没有米苏
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号