How many cities? And across what range (Ie. minimum and maximum distance)?
Depending upon your answers to those questions, there is probably an O(1) solution.
In reply to Re: Lookup closest hash key
by BrowserUk
in thread Lookup closest hash key
by Just in
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |