Skip to content

Commit fde87b1

Browse files
committed
Update word-ladder-ii.py
1 parent 75d4a67 commit fde87b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/word-ladder-ii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def findLadders(self, start, end, dict):
3737
for word in cur:
3838
visited.add(word)
3939

40-
next = set([])
40+
next = set()
4141
for word in cur:
4242
for i in xrange(len(word)):
4343
for j in 'abcdefghijklmnopqrstuvwxyz':

0 commit comments

Comments
 (0)