随笔分类 -  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 阅读全文
posted @ 2023-02-01 10:33 AaronTanooo 阅读(13) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-01-31 14:34 AaronTanooo 阅读(11) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-01-31 14:08 AaronTanooo 阅读(14) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-01-30 18:29 AaronTanooo 阅读(8) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-01-30 16:26 AaronTanooo 阅读(25) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-01-30 13:45 AaronTanooo 阅读(27) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示