Re:Khan Academy: Algorithms
by _nt_ on Sunday March 15, 2015 @05:51PM
(#9208326)
It indeed is interesting question. The solution which comes first to mind is creating a graph, with words as vertices, edges will be only if two words have a difference of single character. Once this graph is created, it's matter of running shortest path algo between two vertices. However, creating the graph itself could be a bitch, depending on size of dictionary.
[ Parent
| on HN ]
There are no comments on this comment yet.