Real computer scientists despise the idea of actual hardware. Hardware has limitations, software doesn't. It's a real shame that Turing machines are so poor at I/O.
I used Python to solve this:
http://kourge.net/node/116
The need to write code for doing list intersections was a bit ugly; if I were using Ruby it wouldn't have needed an "intersection" function because consecutives.inject(:"&") would have done the job, although I'm not sure if Ruby's built-in & method is efficient enough.
My implementation runs about 7 seconds for five conditions. ([3, 5, 143, 865, 1089] => [5990183])
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
Education Sponsors
I am being sponsored by A-Writer! If you ever need help with essay writing, look no further than A-Writer! They will help you with your writing in as quickly as 3 hours!
I used Python to solve this:
http://kourge.net/node/116
The need to write code for doing list intersections was a bit ugly; if I were using Ruby it wouldn't have needed an "intersection" function because consecutives.inject(:"&") would have done the job, although I'm not sure if Ruby's built-in & method is efficient enough.
My implementation runs about 7 seconds for five conditions. ([3, 5, 143, 865, 1089] => [5990183])
Reply To This Comment