Skip to content

Commit 7bd7fae

Browse files
aQuaaQua
authored andcommitted
127 越改越慢,353ms
1 parent 132799b commit 7bd7fae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Algorithms/0127.word-ladder/word-ladder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func ladderLength(beginWord string, endWord string, words []string) int {
2323
for _, n := range nodes {
2424
if isTransable(n, w) {
2525
isTransed = true
26-
break
26+
2727
}
2828
}
2929

0 commit comments

Comments
 (0)