Comments

hi there, suppose u have guard in cell 3,4 with d=1. Now u visited 4,4 from 3,4 with d=0 and markded 4,4 visited... now if from another guard cell 7,4 with d=100, u can visit 4,4 with d>0 this time and also move many other cell from 4,4 now with d>0,, how did u handle this case in Multisource BFS.

my point is if u mark visied a cell for smaller d from a guard,,, and if u could have visited that cell from another guard with larger d and could get to many other cell via that particular cell, how did u handle that?

Sorry for Asking, but can anyone help me with problem B " Escape ". I could not find the idea how to mark all the cell visible to atleast 1 guard any help.