There are several ways to find loop in singly linked list,
Loop Node5 Next pointer is point to Node3 in Singly Linked List
1 ---- 2 ---- 3 ---- 4 ---- 5
|_____________|
- Hashmap
- Floyd’s
Interview Questions asked in Google, Microsoft, Amazon