Hey guys,
Lets say you have a grid like this (made randomly)
Now lets say you have a car starting randomly from one of the while boxes, what would be the shortest path to go through each one of the white boxes? you can visit each white box as many times as you want and cant Jump over the black boxes. The black boxes are like walls. In simple words you can move from white box to white box only..
You can move in any direction, even diagonally.
edit :
Two subquestions : 1)assume you know the position of all black boxes before moving.. 2)Assume you only know the position of a black box when you are in a white box adjacent to it