> This is my first solution try, surely there are faster, shorter, better > solutions... > It creates a graph with the paths of words, then sorts the graph > topologically,
Beside possible inefficiencies, this "solution" breaks if words aren't in the correct order, the topological sort can't work... I'll have to think about better solutions, if possible. Sorry, bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list