ServiceNow interview question

How to detect a loop in linked list? a) Using 1 pointer and using 2 pointers b) Optimized code - Answer: Using hashing