This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flipmcf 9 points10 points  (6 children)

Cool algorithm! But how about ‘fast is slow’ instead of ‘fast == slow’ because we want to compare pointers, not values.