Word ladder

要求shortest transformation,我们只需要bfs.所经历的层数越少说明所需的transformation越少,所以通过bfs找到的第一个解便是最短的。

results matching ""

    No results matching ""