You are given an m x n matrix initialized with three possible values: -1 (a wall or obstacle that cannot be passed), 0 (a guard), or INF (an empty room). Fill each empty room with the distance to its…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.