Loading...

The Chain Transform

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
senior, staff

Problem

A vocabulary game transforms words one letter at a time, and every intermediate word must be valid. Given a start word, an end word, and a dictionary, write a function that returns the minimum number of transformations required to go from start to end. Return 0 if no path exists.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.