Skip to main content

6 docs tagged with "Slow and Fast Pointers"

View All Tags

Linked List Cycle

Given head, the head of a linked list, determine if the linked list has a cycle in it.

Linked List Cycle II

Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null.

Reorder List

You are given the head of a singly linked-list...

Sort List

Given the head of a linked list, return the list after sorting it in ascending order.