Word Ladder
Shortest transformation from beginWord to endWord using wordList Change one letter at a time; each intermediate word must be in wordList Return length of the shortest transformation, or 0 if impossible
Transform one word into another, changing one letter at a time, using only valid dictionary words. It's a shortest-path problem hiding behind a word puzzle—BFS finds the minimum steps. The insight is modeling words as graph nodes where edges connect words that differ by exactly one letter.

Meet Coco
Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.