Skip to content

Commit 216f073

Browse files
author
Joseph Luce
authored
Update 1091_shortest_path_in_binary_matrix.md
1 parent 2c0e21c commit 216f073

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: leetcode/medium/1091_shortest_path_in_binary_matrix.md

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class Solution:
5454
We can further improve the run-time of the BFS by using a bi-directional BFS.
5555
If you imagine a circle, every time you expand the circle, the number of neighbors being visited almost doubles.
5656
Now if you used two circles and expanded them both simultaneously, when they touch, it would have visited less neighbors compared to using one circle.
57-
This decreases the run-time for some inputs, worst case, is the same as the first BFS solution.
5857

5958
```
6059
from collections import deque

0 commit comments

Comments
 (0)