1. Partition Listhistorical

    Given the head head of a linked list and a value x, partition the list so that all nodes with values less than x come before nodes with values greater than or equal to x.

  2. Merge k Sorted Listshistorical

    Merge k sorted linked lists into one sorted linked list. Analyze and describe the complexity.

  3. Merge Two Sorted Listshistorical

    Merge two sorted linked lists into one new sorted linked list and return it. The new list is formed by splicing together all nodes from the two given lists.

  4. Odd Even Linked Listhistorical

    Given the head head of a singly linked list, group all nodes at odd positions together followed by all nodes at even positions, and return the reordered list.

  5. Sort Listhistorical

    Given the head head of a linked list, sort the list in ascending order and return the sorted list.