LeetCode HARD 127 Word Ladder Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
HARD - Problem: Word Ladder
- Main tags:
Breadth-First Search,Hash Table,String,Graph
What the problem is really asking
The input gives a beginWord, an endWord, and a dictionary called wordList.
Each move can change exactly one letter, and every intermediate word must appear in wordList. The task is to return the number of words in the shortest valid transformation sequence from beginWord to endWord. If no such sequence exists, return 0.