Day 43 of LeetCode
Documenting LeetCode solving.
Q117
127. Word Ladder
Hard. Graph
BFS
class Solution:
def ladderLength(self, beginWord: str, endWord: str, wordList: List[str]) -> int:
if endWord not in wordList:
return 0
nei = collecti...
evelynsjourney.hashnode.dev2 min read