Re:The Worst Programming Interview Question
by herge on Monday June 30, 2014 @03:32PM
(#7967109)
If the linked list has a loop, but you don't know it, how do you figure out the length of the list to allocate enough space for your array? How do you copy the list into the array without traversing the list? How do you traverse the list without hitting the loop and looping infinitely?
[ Parent
| on HN ]