No one has replied
It's a neat way to track depth of each node, but it doubles space complexity.
There is no need to count all the differences. As soon as you reached 2 you know that words are not adjacent.
26? Consider this:
Other than that it is very readable solution.
Disabled Categories are greyed out
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.