Jul 21, 2017 · 1 min read
Hey I liked your post. I have one question about optimization.
What if we keep a map which keeps storing the distances between the points while calculating and retrieve them when necessary (sort of dynamic programming.)
Is this optimization worth for the space we spend?
Thanks!