Skip to content

Commit fe953af

Browse files
committed
Update word-ladder-ii.py
1 parent a84d9db commit fe953af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/word-ladder-ii.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Time: O((25n)^n)
2-
# Space: O((25n)^n)
1+
# Time: O(n * d), n is length of string, d is size of dictionary
2+
# Space: O(d)
33
#
44
# Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end, such that:
55
#

0 commit comments

Comments
 (0)