Palo Alto Networks Interview Question

How do you check if a given linked list contains a cycle?

Interview Answer

Anonymous

Feb 23, 2020

using two pointers. one ahead of the second. the move until they met.

1