摘要:
Word LadderGiven two words (startandend), and a dictionary, find the length of shortest transformation sequence fromstarttoend, such that:Only one letter can be changed at a timeEach intermediate word must exist in the dictionaryFor example,Given:start="hit"end="cog"dict=["h 阅读全文
posted @ 2013-08-29 22:22
似溦若岚
阅读(230)
评论(0)
推荐(0)