3 ms·
Shouldn't be a surprise; the person who wrote the algorithm without help took more than 15 minutes, and got a paper or a PhD out of it.
by kps 7y ago
Shouldn't be a surprise; the person who wrote the algorithm without help took more than 15 minutes, and got a paper or a PhD out of it.
- mark-r 7y agoThe first time I heard the problem of detecting a circular link in a linked list, I figured out the tortoise/hare solution in probably 15 minutes without having heard it before, so it's not impossible.
- commandlinefan 7y agoYou should have written a paper.
- mark-r 7y agoI was hardly the first person to figure it out.