Given two words, src and dest, and a list, words, return the number of words in the shortest transformation sequence from src to dest. If no such sequence can be formed, return .
A transformation sequence is a sequence of words src that has the following properties:
destwords. The src does not need to be present in words.Constraints:
src.length
src.length dest.length words[i].length
src dest
words.length
No duplicates in the words
src, dest, and words[i] consist of lowercase English characters.
Given two words, src and dest, and a list, words, return the number of words in the shortest transformation sequence from src to dest. If no such sequence can be formed, return .
A transformation sequence is a sequence of words src that has the following properties:
destwords. The src does not need to be present in words.Constraints:
src.length
src.length dest.length words[i].length
src dest
words.length
No duplicates in the words
src, dest, and words[i] consist of lowercase English characters.