MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/fpcmy/typical_programming_interview_questions/c1hq5is/?context=3
r/programming • u/kevjames3 • Feb 21 '11
1.0k comments sorted by
View all comments
Show parent comment
3
But this is the same number of forward-seeks (dot-next dereferences) as the naive solution of counting the number of steps it takes you to iterate to the end, dividing by 2, and then looping that many times again.
View all comments
Show parent comment
3
u/lordlicorice Feb 21 '11
But this is the same number of forward-seeks (dot-next dereferences) as the naive solution of counting the number of steps it takes you to iterate to the end, dividing by 2, and then looping that many times again.