employer cover photo
employer logo
employer logo

Huawei Technologies

Is this your company?

Huawei Technologies Interview Question

How to find, whether a loop exists in linked list ?

Interview Answer

Anonymous

Feb 26, 2012

Take two pointers, one travels with an overhead of one node at a time, the other one two. When both meet, there is a loop