1162 As Far from Land as Possible
Techniques Used
Graph - A bit tricky
BFS
Approach
We add all the cells which have 1 into our queue, and mark that cell as visited.
Inside our BFS function
while the queue is non empty
poll the coordinates of the 1 at the top of the queue
for each ...
raahulsaxena.hashnode.dev2 min read