整个链表的题,逃不出如下几种基本操作:
- Insert a node
- remove a node
- reverse a linked list
- find the middle of a linked list
- merge two linked lists
find the middle of a linked list
1 |
public ListNode (ListNode head) { |
整个链表的题,逃不出如下几种基本操作:
find the middle of a linked list
1 |
public ListNode (ListNode head) { |
近期评论