Timeline for Can I optimize two for loops that look for the closest zip code based on lat/lon?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 20, 2021 at 12:31 | comment | added | Pavlo Slavynskyy | Sorry, this doesn't work. If target is (0,0) and points are [(100,0),(-100,0),(0,-100),(0,100),(1,1)] - the best is (1,1), but your algo gives four other points. | |
| Mar 23, 2021 at 10:25 | review | First posts | |||
| Mar 23, 2021 at 12:09 | |||||
| Mar 23, 2021 at 10:19 | history | answered | Paul | CC BY-SA 4.0 |