You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: zh/1-1000/127-word-ladder.md
+35-35Lines changed: 35 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ The **word transformation sequence** problem can be abstracted into a **graph th
46
46

47
47
48
48
* As shown in the figure above, **breadth-first search** can be thought of as visiting vertices in rounds and rounds. Actually, whenever you see a question is about
49
-
getting `shortest` or `least` of something of a graph, `breadth-first search` would probably help.
49
+
getting `shortest` or `least` of something of a graph, `breadth-first search` would probably help.
50
50
51
51
*`breadth-first search` emphasizes first-in-first-out, so a **queue** is needed.
52
52
@@ -55,57 +55,57 @@ getting `shortest` or `least` of something of a graph, `breadth-first search` wo
55
55
1. So through `Breadth-First Search`, when a word matches `endWord`, the game is over, and we can return the number of **circle** as a result.
0 commit comments