This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingWords are vertices and one-letter changes are edges; BFS finds the shortest chain.
What this asks
Find the shortest chain of one-letter changes between two words.
Words are vertices and one-letter neighbours are edges; BFS finds the shortest chain.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing