Detect loop in a linked list
Anonymous
2) The second question was to detect loop in a linked list, I gave the tortoise and hare approach to detect cycle in a linked list and the interviewer also asked me to write a code for it.
Check out your Company Bowl for anonymous work chats.