On a grid bounded by (0, 0) and (x, y), where x, y are positive integers, a fire ant begins at (0, 0).
On each turn, the ant can either move 1 unit up, down, left, or right without leaving the grid, ...
Receive updates from Hot Questions - Stack Exchange for free, starting right now.
We can deliver them by email, via your phone or you can read them from a personalised news page on follow.it.
This way you won't miss any new article from Hot Questions - Stack Exchange. Unsubscribe at any time.
Site title: Hot Questions - Stack Exchange