Mercurial > louis > peeves
view graphs_trees/wordpath/solution.py @ 0:20fea762903e
Import some exercises and solutions
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Sat, 29 Jun 2013 19:30:31 -0700 |
parents | |
children |
line wrap: on
line source
# I didn't write it, but this is an iterative breadth-first tree traversal # (i.e: you generate the words, enqueue them on a queue, dequeue from the queue # until it's empty or you found the second word).