Sobes.tech
Middle+

On an infinite coordinate grid, an ant starts at (1000, 1000) and moves one cell in four directions. Cells where the sum of the digits of X and Y coordinates is greater than 25 are inaccessible. How many cells can it visit, including the starting cell? Write a solution in Python 2.

On an infinite coordinate grid, an ant starts at… - sobes.tech