Given a linked list, detect if it contains a cycle. If a cycle exists, find the node where the cycle begins and remove the cycle by setting the next pointer of the last node to null.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.