All Shortest Word Transformation Sequences

Asked at Tesla · Coding Questions · Difficulty: Hard · Last asked Aug 21, 2025

You are given a start word, a target word and a list of allowed words. A transformation changes exactly one letter at a time, and every word you reach must be in the list. Return every shortest sequence of words that leads from the start word to the target word.

Loading the problem…