My notes on leetcode
Wednesday, September 10, 2014
Code Ganker: Word Ladder -- LeetCode
Code Ganker: Word Ladder -- LeetCode
: 原题链接: http://oj.leetcode.com/problems/word-ladder/ 这道题看似一个关于字符串操作的题目,其实要解决这个问题得用图的方法。我们先给题目进行图的映射,顶点则是每个字符串,然后两个字符串如果相差一个字符则我们进行连边。接下来看看这个...
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment