随笔分类 - Linked List
摘要:23. Merge k Sorted Lists You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists int
阅读全文
摘要:141. Linked List Cycle Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list if the
阅读全文
摘要:19. Remove Nth Node From End of List Given the head of a linked list, remove the nth node from the end of the list and return its head. Constraints: T
阅读全文
摘要:143. Reorder List You are given the head of a singly linked-list. The list can be represented as: L0 → L1 → … → Ln - 1 → Ln Reorder the list to be on
阅读全文
摘要:21. Merge Two Sorted Lists You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list. The list shou
阅读全文
摘要:206. Reverse Linked List Given the head of a singly linked list, reverse the list, and return the reversed list. Constraints: The number of nodes in t
阅读全文