Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎leetcode/medium/1091_shortest_path_in_binary_matrix.md‎

Lines changed: 0 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /