Comment on Programmer tries to explain binary search to the police

<- View Parent
Ardyssian@sh.itjust.works ⁨11⁩ ⁨months⁩ ago

What about this hypothetical scenario:

Suppose the objective is to review highway cam footage of the day to verify that a (non-speeding) car with a particular license plate passed by the area / used this route. We know on average cars that drive past this camera only appear for 3 seconds on the footage. How can binary search be used to find the car within 24 hours of footage, if the target car only appears for 3 seconds within the 24 hour span?

source
Sort:hotnewtop