by gfrangakis · 8y ago · 0 comments
https://medium.com/@buckhx/unwinding-uber-s-most-efficient-s...
I am surprised they're scanning each city linearly, even a crude index (such as boxing), or a binary search would greatly improve the lookup time. I guess if the data fits into the cpu cache the order these are scanned doesn't matter so much?