WorldQuant Interview Question

How do you find cycles in a linked list?

Interview Answer

Anonymous

Nov 10, 2018

make the head of linked list pass to you then loop to the next until it has nothing to travel or meet the head. if meet the head, then the linked list is looped