View Single Post
Old 2012-02-08, 13:30   #5
(loop (#_fork))
fivemack's Avatar
Feb 2006
Cambridge, England

23×797 Posts

Or you could uniqify (put them into a hash table and then pull out the keys), sort, and if a[x+4] == 4+a[x] then there's a straight from a[x] to 4+a[x].
fivemack is offline   Reply With Quote