Write an algorithm to detect if there is a loop in a singly linked list. Hint: The best solution can be done in O(n) time using constant memory.
Leave a comment
If you are including code in your comment, place it within a <div class='code'></div> tag for better formatting.
No Comments so far
Leave a comment