Bitmaps always fascinate me. They are also the solution for one of the most common interview questions:
How do you pick a single poisoned barrel out of 1000 with 10 prisoners as your guinea pigs :)
How do you pick a single poisoned barrel out of 1000 with 10 prisoners as your guinea pigs :)
But thanks anyway.
Note: I have not verified this solution, and it does not match the solution that was posted elsewhere in this thread.