Quick algorithm for distance between 2 points on a grid?
Given a grid of width by length (say 5 x 4) and an array of X and Y coords for points on that grid, print the distance from each point on the grid to the coords as below: width = 5 len = 4 x coords …