paint-brush
How to Find the Maximum Accessible Area on a 2D Gridby@damian
719 reads
719 reads

How to Find the Maximum Accessible Area on a 2D Grid

by Damian Perera4mOctober 14th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A character can move around on a two-dimensional (x,y) coordinate grid. Some points are dangerous and contain land mines. To know which points are safe, we check whether the sum of the digits of abs(x) plus the sum (x-1, y) are less than or equal to 23. The origin of a graph in the real world should be the coordinate at the centre of the grid. We can use the same logic to translate a coordinate on a real-world graph into our grid by adding the coordinates on a 2D grid.

Company Mentioned

Mention Thumbnail
featured image - How to Find the Maximum Accessible Area on a 2D Grid
Damian Perera HackerNoon profile picture
Damian Perera

Damian Perera

@damian

Full Stack Developer

About @damian
LEARN MORE ABOUT @DAMIAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Damian Perera HackerNoon profile picture
Damian Perera@damian
Full Stack Developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite