Word Ladder
1 | Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that: |
解法一
1 | /** |
解法二:
1 | public int ladderLength1(String beginWord, String endWord, List<String> wordList) { |